mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
major UIWidget rewrite with new features
This commit is contained in:
@@ -97,7 +97,7 @@ void UIVerticalLayout::internalUpdate()
|
||||
pos.y += gap;
|
||||
prefferedHeight += gap;
|
||||
|
||||
if(widget->isSizeFixed()) {
|
||||
if(widget->isFixedSize()) {
|
||||
// center it
|
||||
pos.x = childrenRect.left() + (childrenRect.width() - (widget->getMarginLeft() + widget->getWidth() + widget->getMarginRight()))/2;
|
||||
pos.x = std::max(pos.x, parentWidget->getX());
|
||||
|
||||
Reference in New Issue
Block a user