diff options
-rw-r--r-- | ui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -947,7 +947,7 @@ UI::Modal::Modal(UI* ui, Element* parent, const char* text): UI::Rect UI::Modal::layout(const Rect& avail) { Rect r = avail; - if (pos[0] && pos[1]) { + if (pos[0] || pos[1]) { r.x = pos[0]; r.y = pos[1]; } |