X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpanel.cpp;h=23657de506c6fc42f7bd8c02d8cadf07f28b201a;hb=ec879cd7dba36a3f40a9faed27782de1495a00ed;hp=f9ea0d4b830a45b690b3134c496f0c1e110c4928;hpb=d34a75fa019d37c4ea748e93c276a6f24b941b1c;p=libs%2Fgltk.git diff --git a/source/panel.cpp b/source/panel.cpp index f9ea0d4..23657de 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -3,10 +3,12 @@ #include #include "button.h" #include "column.h" +#include "draghandle.h" #include "dropdown.h" #include "entry.h" #include "grid.h" #include "hslider.h" +#include "image.h" #include "indicator.h" #include "label.h" #include "list.h" @@ -39,10 +41,10 @@ void Panel::set_layout(Layout *l) layout = l; } -void Panel::autosize() +void Panel::autosize_special(const Part &part, Geometry &ageom) { - if(layout) - layout->autosize(); + if(part.get_name()=="children" && layout) + layout->autosize(ageom); } void Panel::render_special(const Part &part, GL::Renderer &renderer) const @@ -88,6 +90,7 @@ Panel::Loader::Loader(Panel &p, map &m): add("button", &Loader::child