Skip to content

Commit

Permalink
Fixed moving label on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
andlabs committed Apr 14, 2015
1 parent 21f1221 commit e9920c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions new/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

// TODO
// - rename to uiBox
// - on windows, removing a control from one stack and adding it to another doesn't actually move the control (just removing it works though, so...)

typedef struct stack stack;
typedef struct stackControl stackControl;
Expand Down Expand Up @@ -355,11 +354,11 @@ void uiStackAdd(uiControl *st, uiControl *c, int stretchy)
}
s->controls[s->len].c = c;
s->controls[s->len].stretchy = stretchy;
s->len++; // must be here for parent updates to work
if (s->parent != NULL) {
uiControlSetParent(s->controls[s->len].c, s->parent);
uiControlSetParent(s->controls[s->len - 1].c, s->parent);
uiParentUpdate(s->parent);
}
s->len++;
}

void uiStackRemove(uiControl *st, uintmax_t index)
Expand Down

0 comments on commit e9920c7

Please sign in to comment.