From a778810b6fa6feff8aff06bdf632623e7923537a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 14 Jul 2013 14:20:17 +0300 Subject: [PATCH] Retain position when autosizing widget --- source/widget.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.43.0