diff options
author | quou <quou@disroot.org> | 2024-12-31 23:58:20 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-31 23:58:20 +1100 |
commit | 832039a2113e73fdb185861d90674db1cc12b3b5 (patch) | |
tree | e9572d76921de4240819bb8e48b4e311e68e8008 | |
parent | 92692cccfe0524ba7cece97e495e8c62a57b1c23 (diff) |
fix modal position check
-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]; } |