Changeset 8004 in orxonox.OLD for branches/gui/src/lib
- Timestamp:
- May 31, 2006, 12:35:02 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_box.cc
r8003 r8004 103 103 void GLGuiBox::resize() 104 104 { 105 float height = 0.0f;105 float height = this->borderSize(); 106 106 float width = 0.0f; 107 107 std::vector<GLGuiWidget*>::iterator widget; … … 110 110 for (widget = this->children.begin(); widget != this->children.end(); ++widget) 111 111 { 112 (*widget)->set AbsCoor2D(0, height);112 (*widget)->setRelCoor2D(this->borderSize(), height); 113 113 height += (*widget)->getSizeY2D(); 114 114 width = fmax(width, (*widget)->getSizeX2D()); 115 115 } 116 116 117 width += this->borderSize() * 2.0; 118 height += this->borderSize(); /* *2 done further up */ 119 120 printf("%f %f\n", width, height); 121 this->setSize2D(width, height); 117 122 GLGuiWidget::resize(); 118 123 // resize everything.
Note: See TracChangeset
for help on using the changeset viewer.