diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-08 10:52:54 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-08 10:52:54 +0300 |
commit | 5db4578e5d8e58ceb32ea0405ac493d1b0ffa592 (patch) | |
tree | e4853406eb1334deb5b1a24f81596fdfb617bb47 /src/ui/widget.c | |
parent | 4ce9a07bbd4a4a82ff0b310d9c9e0768febe8d61 (diff) |
Mobile: Preferences is completed, improved
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 0d6787ce..4fd8f066 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -1288,6 +1288,12 @@ iAny *addChildPosFlags_Widget(iWidget *d, iAnyObject *child, enum iWidgetAddPos | |||
1288 | d->children = new_ObjectList(); | 1288 | d->children = new_ObjectList(); |
1289 | } | 1289 | } |
1290 | if (addPos == back_WidgetAddPos) { | 1290 | if (addPos == back_WidgetAddPos) { |
1291 | /* Remove a redundant border flags. */ | ||
1292 | if (!isEmpty_ObjectList(d->children) && | ||
1293 | as_Widget(back_ObjectList(d->children))->flags & borderBottom_WidgetFlag && | ||
1294 | widget->flags & borderTop_WidgetFlag) { | ||
1295 | widget->flags &= ~borderTop_WidgetFlag; | ||
1296 | } | ||
1291 | pushBack_ObjectList(d->children, widget); /* ref */ | 1297 | pushBack_ObjectList(d->children, widget); /* ref */ |
1292 | } | 1298 | } |
1293 | else { | 1299 | else { |