mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
scroll when focusing widgets
This commit is contained in:
@@ -47,7 +47,7 @@ bool UIVerticalLayout::internalUpdate()
|
||||
if(m_alignBottom)
|
||||
std::reverse(widgets.begin(), widgets.end());
|
||||
|
||||
Rect clippingRect = parentWidget->getClippingRect();
|
||||
Rect clippingRect = parentWidget->getPaddingRect();
|
||||
Point pos = (m_alignBottom) ? clippingRect.bottomLeft() : clippingRect.topLeft();
|
||||
int preferredHeight = 0;
|
||||
int gap;
|
||||
|
||||
Reference in New Issue
Block a user