Browse Source

row also squeezes elements to minimum size

pull/1/head
Leonard Ritter 10 years ago
parent
commit
4520bf684c
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      oui.h

+ 4
- 4
oui.h View File

@@ -30,7 +30,7 @@ extern "C" {
#endif

/*
Revision 3 (2014-09-23)
Revision 4 (2014-12-17)

OUI (short for "Open UI", spoken like the french "oui" for "yes") is a
platform agnostic single-header C library for layouting GUI elements and
@@ -1493,10 +1493,10 @@ UI_INLINE void uiArrangeStacked(UIitem *pitem, int dim, bool wrap) {
x1 = x+ui_maxf(0.0f,(float)pkid->size[dim]+eater);
}
ix0 = (short)x;
if (wrap)
//if (wrap)
ix1 = (short)ui_minf(max_x2-(float)pkid->margins[wdim], x1);
else
ix1 = (short)x1;
//else
// ix1 = (short)x1;
pkid->margins[dim] = ix0;
pkid->size[dim] = ix1-ix0;
x = x1 + (float)pkid->margins[wdim];


Loading…
Cancel
Save