mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
improv miniwindow move
This commit is contained in:
@@ -36,7 +36,7 @@ void UIVerticalLayout::update()
|
||||
// sort by Y center
|
||||
std::sort(widgets.begin(), widgets.end(),
|
||||
[](const UIWidgetPtr& first, const UIWidgetPtr& second) -> bool {
|
||||
return first->getRect().center().y < second->getRect().center().y;
|
||||
return first->getY() < second->getY();
|
||||
});
|
||||
|
||||
Point pos = parentWidget->getPosition();
|
||||
|
||||
Reference in New Issue
Block a user