mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibGUI: Add missing constructor to UISize class for fixed_size property
This patch adds a missing constructor to UISize class for fixed_size property, so the property can take an array if user specified it in .gml file.
This commit is contained in:
parent
e7f7c434f7
commit
d2995f7517
Notes:
sideshowbarker
2024-07-17 09:48:50 +09:00
Author: https://github.com/tetektoza 🔰 Commit: https://github.com/SerenityOS/serenity/commit/d2995f7517 Pull-request: https://github.com/SerenityOS/serenity/pull/21230 Reviewed-by: https://github.com/timschumi ✅
1 changed files with 5 additions and 0 deletions
|
@ -208,6 +208,11 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
UISize(Array<i64, 2> size)
|
||||
: UISize(size[0], size[1])
|
||||
{
|
||||
}
|
||||
|
||||
UISize(SpecialDimension special)
|
||||
: Gfx::Size<UIDimension>(UIDimension { special }, UIDimension { special })
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue