]> git.tdb.fi Git - libs/gltk.git/commitdiff
Retain position when autosizing widget
authorMikko Rasa <tdb@tdb.fi>
Sun, 14 Jul 2013 11:20:17 +0000 (14:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 14 Jul 2013 11:20:17 +0000 (14:20 +0300)
source/widget.cpp

index 2183be6623b5467b0d1431f531a2cea6cb534897..13c5174df43e33cc6db256bbbe47ec45d3de7c4a 100644 (file)
@@ -44,6 +44,8 @@ void Widget::autosize()
                return;
 
        Geometry ageom;
+       ageom.x = geom.x;
+       ageom.y = geom.y;
        const Style::PartSeq &parts = style->get_parts();
        for(Style::PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i)
        {