summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-11 22:33:00 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-11 22:33:00 +0300
commit601f1dbde6f98b68ed6df9339bf6fafec16f0f57 (patch)
tree10ad738a242c22ce6c66f7e9ae4b341d6de6d673 /src/ui
parent647e0be85a1b9b76e338452c5b531995ac972c57 (diff)
Fixed widget arrangement issue
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 3e34c285..b9fb12b9 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -271,6 +271,9 @@ void arrange_Widget(iWidget *d) {
271 iWidget *child = as_Widget(i.object); 271 iWidget *child = as_Widget(i.object);
272 arrange_Widget(child); 272 arrange_Widget(child);
273 if (d->flags & (arrangeHorizontal_WidgetFlag | arrangeVertical_WidgetFlag)) { 273 if (d->flags & (arrangeHorizontal_WidgetFlag | arrangeVertical_WidgetFlag)) {
274 if (child->flags & moveToParentRightEdge_WidgetFlag) {
275 continue; /* Not part of the sequential arrangement .*/
276 }
274 child->rect.pos = pos; 277 child->rect.pos = pos;
275 if (d->flags & arrangeHorizontal_WidgetFlag) { 278 if (d->flags & arrangeHorizontal_WidgetFlag) {
276 pos.x += child->rect.size.x; 279 pos.x += child->rect.size.x;