mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
some rework in UIWidget input
This commit is contained in:
@@ -70,7 +70,7 @@ void UIHorizontalLayout::internalUpdate()
|
||||
pos.y = clippingRect.top() + (clippingRect.height() - size.height())/2;
|
||||
}
|
||||
|
||||
widget->setRect(Rect(pos + parentWidget->getVirtualOffset(), size));
|
||||
widget->setRect(Rect(pos - parentWidget->getVirtualOffset(), size));
|
||||
|
||||
gap = (m_alignRight) ? -widget->getMarginLeft() : (widget->getWidth() + widget->getMarginRight());
|
||||
gap += m_spacing;
|
||||
|
||||
Reference in New Issue
Block a user