[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-03-01 4:46:46
Message-ID: 20050301044646.D714D16EF1 () office ! kde ! org
[Download RAW message or body]
CVS commit by aseigo:
found another pathological case. this takes care of all of them.
i really need to put together a test framework for kicker. but first i need
a proper dcop interface. =/
M +15 -1 containerarea.cpp 1.217
--- kdebase/kicker/core/containerarea.cpp #1.216:1.217
@@ -1338,6 +1338,20 @@ void ContainerArea::setPosition(KPanelEx
{
setOrientation(o);
- resizeContents(width(), height());
m_layout->setOrientation(o);
+
+ // when we change orientation, we will resize the "width"
+ // component down to 0, forcing a resize in resizeContents()
+ // when that gets called AFTER we've been moved
+ // it's not always safe to do the resize here, as scroll buttons
+ // from the panner may get in our way. =/
+ if (o == Horizontal)
+ {
+ resizeContents(0, height());
+ }
+ else
+ {
+ resizeContents(width(), 0);
+ }
+
setBackgroundTheme();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic