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 UIVerticalLayout::internalUpdate()
|
||||
pos.x = clippingRect.left() + (clippingRect.width() - size.width())/2;
|
||||
}
|
||||
|
||||
widget->setRect(Rect(pos + parentWidget->getVirtualOffset(), size));
|
||||
widget->setRect(Rect(pos - parentWidget->getVirtualOffset(), size));
|
||||
|
||||
gap = (m_alignBottom) ? -widget->getMarginTop() : (widget->getHeight() + widget->getMarginBottom());
|
||||
gap += m_spacing;
|
||||
|
||||
Reference in New Issue
Block a user