@ -737,18 +737,6 @@ DragDrop.DropArea {
}
}
}
}
function checkLayoutsAnimatedLength ( ) {
/ / A f t e r t h e l a s t a n i m a t i o n s w e m u s t c h e c k a g a i n a f t e r a s m a l l d e l a y i n o r d e r
/ / t o d i s a b l e t h e a u t o m a t i c S i z e U p d a t e
if ( animatedLengthTimer . running ) {
animatedLengthTimer . restart ( ) ;
} else {
animatedLengthTimer . start ( ) ;
}
visibilityManager . updateMaskArea ( ) ;
}
function clearZoom ( ) {
function clearZoom ( ) {
layoutsContainer . currentSpot = - 1000 ;
layoutsContainer . currentSpot = - 1000 ;
layoutsContainer . hoveredIndex = - 1 ;
layoutsContainer . hoveredIndex = - 1 ;
@ -883,7 +871,7 @@ DragDrop.DropArea {
}
}
function updateAutomaticIconSize ( ) {
function updateAutomaticIconSize ( ) {
if ( visibilityManager . normalState && ! animatedLengthTimer. running && ! root. editMode
if ( visibilityManager . normalState && ! root. editMode
&& ( iconSize === plasmoid . configuration . iconSize || iconSize === automaticIconSizeBasedSize ) ) {
&& ( iconSize === plasmoid . configuration . iconSize || iconSize === automaticIconSizeBasedSize ) ) {
var layoutLength ;
var layoutLength ;
var maxLength = dock . maxLength ;
var maxLength = dock . maxLength ;
@ -1100,21 +1088,7 @@ DragDrop.DropArea {
Layout.preferredWidth: width
Layout.preferredWidth: width
Layout.preferredHeight: height
Layout.preferredHeight: height
property bool animatedLength: false
property int count: children . length
property int count: children . length
onHeightChanged: {
if ( root . isVertical && ! root . editMode ) {
checkLayoutsAnimatedLength ( ) ;
}
}
onWidthChanged: {
if ( root . isHorizontal && ! root . editMode ) {
checkLayoutsAnimatedLength ( ) ;
}
}
}
}
Grid {
Grid {
@ -1196,16 +1170,6 @@ DragDrop.DropArea {
/ / / / / / / / / / / / / / / E N D U I e l e m e n t s
/ / / / / / / / / / / / / / / E N D U I e l e m e n t s
/ / / / / / / / / / / / / / / B E G I N T I M E R e l e m e n t s
/ / / / / / / / / / / / / / / B E G I N T I M E R e l e m e n t s
Timer {
id: animatedLengthTimer
interval: 500
onTriggered: {
if ( ( appletsAnimations === 0 ) && ( root . animationsNeedLength === 0 ) && ( root . animationsNeedBothAxis === 0 ) ) {
mainLayout . animatedLength = false ;
visibilityManager . updateMaskArea ( ) ;
}
}
}
/ / T i m e r t o c h e c k i f t h e m o u s e i s s t i l l i n s i d e t h e L i s t V i e w
/ / T i m e r t o c h e c k i f t h e m o u s e i s s t i l l i n s i d e t h e L i s t V i e w
Timer {
Timer {