mirror of
https://github.com/edubart/otclient.git
synced 2025-10-22 15:25:54 +02:00
text edit (not finished)
This commit is contained in:
@@ -52,7 +52,10 @@ int AnchorLine::getPos() const
|
||||
|
||||
void UILayout::setSize(const Size& size)
|
||||
{
|
||||
m_rect.setSize(size);
|
||||
if(m_rect.isValid())
|
||||
m_rect.setSize(size);
|
||||
else
|
||||
m_rect = Rect(0, 0, size);
|
||||
|
||||
// rect updated, recalculate itself and anchored elements positions
|
||||
recalculateAnchors();
|
||||
|
Reference in New Issue
Block a user