@ -82,7 +82,8 @@ DragDrop.DropArea {
root . maxIconSize
property int proportionIconSize: { / / i c o n s i z e b a s e d o n s c r e e n h e i g h t
return ( plasmoid . configuration . proportionIconSize === - 1 ) ? - 1 : Math . round ( Screen . height * plasmoid . configuration . proportionIconSize / 100 / 8 ) * 8 ;
return ( plasmoid . configuration . proportionIconSize === - 1 ) || ! dock ?
- 1 : Math . round ( dock . screenGeometry . height * plasmoid . configuration . proportionIconSize / 100 / 8 ) * 8 ;
}
property int iconStep: 8
@ -521,6 +522,11 @@ DragDrop.DropArea {
}
}
onProportionIconSizeChanged: {
if ( proportionIconSize !== - 1 )
updateAutomaticIconSize ( ) ;
}
/ / o n I c o n S i z e C h a n g e d : c o n s o l e . l o g ( " I c o n S i z e C h a n g e d : " + i c o n S i z e ) ;
Component.onCompleted: {
@ -1075,6 +1081,19 @@ DragDrop.DropArea {
}
}
Connections {
target: dock
onWidthChanged: {
if ( root . isHorizontal && proportionIconSize !== - 1 )
updateAutomaticIconSize ( ) ;
}
onHeightChanged: {
if ( root . isVertical && proportionIconSize !== - 1 )
updateAutomaticIconSize ( ) ;
}
}
/ / / / E N D i n t e r f a c e s