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:
@@ -46,7 +46,7 @@ bool UIHorizontalLayout::internalUpdate()
|
||||
std::reverse(widgets.begin(), widgets.end());
|
||||
|
||||
bool changed = false;
|
||||
Rect clippingRect = parentWidget->getClippingRect();
|
||||
Rect clippingRect = parentWidget->getPaddingRect();
|
||||
Point pos = (m_alignRight) ? clippingRect.topRight() : clippingRect.topLeft();
|
||||
int preferredWidth = 0;
|
||||
int gap;
|
||||
|
||||
Reference in New Issue
Block a user