correct sizes for folderview applets

pull/1/head
Michail Vourlakos 8 years ago
parent dae061e64d
commit 33aa55271d

@ -565,7 +565,8 @@ Item {
else if(applet
&& ( (applet.Layout.maximumHeight < root.iconSize) || (applet.Layout.preferredHeight > root.iconSize))
&& root.isVertical
&& !disableScaleWidth ) {
&& !disableScaleWidth
&& applet.pluginName !== "org.kde.plasma.folder") {
//&& !root.editMode ){
disableScaleHeight = true;
//this way improves performance, probably because during animation the preferred sizes update a lot
@ -608,7 +609,8 @@ Item {
else if(applet
&& ( (applet.Layout.maximumWidth < root.iconSize) || (applet.Layout.preferredWidth > root.iconSize))
&& root.isHorizontal
&& !disableScaleHeight ){
&& !disableScaleHeight
&& applet.pluginName !== "org.kde.plasma.folder"){
// && !root.editMode){
disableScaleWidth = true;
//this way improves performance, probably because during animation the preferred sizes update a lot

Loading…
Cancel
Save