(svn r23692) -Fix: use smallest_x of your children only when you let the children update it

pull/155/head
rubidium 13 years ago
parent c967d260bc
commit 7e8fc15328

@ -113,7 +113,6 @@ public:
/* Oh yeah, we ought to be findable! */
w->nested_array[WID_NG_HEADER] = this;
this->smallest_x = this->head->smallest_x + this->tail->smallest_x; // First and last are always shown, rest not
this->smallest_y = 0; // Biggest child.
this->fill_x = 1;
this->fill_y = 0;
@ -131,6 +130,8 @@ public:
child_wid->current_x = child_wid->smallest_x;
child_wid->current_y = this->smallest_y;
}
this->smallest_x = this->head->smallest_x + this->tail->smallest_x; // First and last are always shown, rest not
}
void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool rtl)

Loading…
Cancel
Save