1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-21 10:50:30 +03:00

correct sizes for folderview applets

This commit is contained in:
Michail Vourlakos 2017-05-16 01:41:40 +03:00
parent dae061e64d
commit 33aa55271d

View File

@ -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