Small fix to FloatingLayout

This commit is contained in:
Mika Fischer
2011-06-10 16:39:51 +02:00
parent faa4801efb
commit c415b6c8c6
+2 -2
View File
@@ -44,11 +44,11 @@ class FloatingLayout(QLayout):
w = max(w, item.minimumSize().width())
h = max(h, item.minimumSize().height())
current_width = self.contentsRect().width()
left, top, right, bottom = self.getContentsMargins()
current_width = self.contentsRect().width() - left - right
if current_width > 0:
h = self.heightForWidth(current_width)
left, top, right, bottom = self.getContentsMargins()
w += left + right
h += top + bottom