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

List:       kde-commits
Subject:    playground/base/plasma/shells/mobile/containments/mobiledesktop
From:       Marco Martin <notmart () gmail ! com>
Date:       2010-11-10 14:31:57
Message-ID: 20101110143157.82583AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195169 by mart:

correctly resize main widget when there is an even number of columns


 M  +3 -1      appletscontainer.cpp  


--- trunk/playground/base/plasma/shells/mobile/containments/mobiledesktop/appletscontainer.cpp \
#1195168:1195169 @@ -220,7 +220,9 @@
     repositionToolBox();
 #endif
 
-    resize(size().width(), \
(ceil((qreal)m_containment->applets().count()/columns))*maximumAppletSize.height()); \
+    resize(size().width(), +           \
(ceil((qreal)m_containment->applets().count()/columns)) +            * \
(maximumAppletSize.height() + \
(m_applets.count()%2==0?maximumAppletSize.height():0)));  }
 
 void AppletsContainer::repositionToolBox()


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

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