| 31 | } |
| 32 | |
| 33 | void StackPanel::overrideArrange() |
| 34 | { |
| 35 | int offset = 0; |
| 36 | |
| 37 | EnumeratorWidgetPtr child = getEnumerator(); |
| 38 | while (child.next()) |
| 39 | { |
| 40 | const IntSize& childSize = Panel::getDesiredSize(child.current()); |
| 41 | IntCoord coord; |
| 42 | |
| 43 | int height = childSize.height; |
| 44 | coord.set(0, offset, getWidth(), height); |
| 45 | |
| 46 | Panel::updateArrange(child.current(), coord); |
| 47 | |
| 48 | offset += height + mSpacer.height; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | const IntSize& StackPanel::getSpacer() const |
| 53 | { |