[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kicker/core
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2005-02-24 7:07:41
Message-ID: 20050224070741.C50B9EDBC () office ! kde ! org
[Download RAW message or body]

CVS commit by aseigo: 

putting a widget in the cell reduces the spacing! take that into
consideration so centered auto-growing panels work nicer =)
BUG:95817


  M +17 -19    container_extension.cpp   1.113


--- kdebase/kicker/core/container_extension.cpp  #1.112:1.113
@@ -216,7 +216,6 @@ QSize ExtensionContainer::sizeHint(KPane
         }
 
-        // now that we have the theoretical width, let's compare to the
-        // current actual width and the take the larger of the two
-        width = QMAX(width, _layout->colSpacing(0) + _layout->colSpacing(2));
+        // don't forget we might have a border!
+        width += _layout->colSpacing(0) + _layout->colSpacing(2);
     }
     else
@@ -237,7 +236,6 @@ QSize ExtensionContainer::sizeHint(KPane
         }
 
-        // now that we have the theoretical width, let's compare to the
-        // current actual width and the take the larger of the two
-        height = QMAX(height, _layout->rowSpacing(0) + _layout->rowSpacing(2));
+        // don't forget we might have a border!
+        height += _layout->rowSpacing(0) + _layout->rowSpacing(2);
     }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic