1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

LibGUI: More GInputBox refinements.

Fix some GBoxLayout bugs to make the buttons in GInputBox line up better.
There are still some imperfections due to rounding errors.
This commit is contained in:
Andreas Kling 2019-03-19 03:00:42 +01:00
parent 46577a6948
commit e15cc4509f
3 changed files with 15 additions and 19 deletions

View file

@ -39,6 +39,13 @@ public:
return *this;
}
Size& operator+=(const Size& other)
{
m_width += other.m_width;
m_height += other.m_height;
return *this;
}
operator WSAPI_Size() const;
String to_string() const { return String::format("[%d,%d]", m_width, m_height); }