From: Mikko Rasa Date: Sun, 14 Jul 2013 11:20:17 +0000 (+0300) Subject: Retain position when autosizing widget X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a778810b6fa6feff8aff06bdf632623e7923537a;p=libs%2Fgltk.git Retain position when autosizing widget --- diff --git a/source/widget.cpp b/source/widget.cpp index 2183be6..13c5174 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -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) {