@ -110,6 +110,9 @@ DragDrop.DropArea {
property int totalPanelEdgeSpacing: 0 / / t h i s i s s e t b y P a n e l B o x
/ / F I X M E : t h i s i s n o t n e e d e d a n y m o r e p r o b a b l y
property int previousAllTasks: - 1 / / i s u s e d t o f o r b i t u p d a t e A u t o m a t i c I c o n S i z e w h e n h o v e r i n g
property int offset: root . isHorizontal ? width * ( plasmoid . configuration . offset / 100 )
: height * ( plasmoid . configuration . offset / 100 )
property int realSize: iconSize + iconMargin
property int realPanelSize: 0
property int realPanelLength: 0
@ -264,6 +267,7 @@ DragDrop.DropArea {
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignLeft ; verticalItemAlignment: Grid . AlignVCenter ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: root . offset ;
}
} ,
State {
@ -276,7 +280,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignLeft ; verticalItemAlignment: Grid . AlignVCenter ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: root . offset ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
} ,
State {
@ -289,7 +294,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignLeft ; verticalItemAlignment: Grid . AlignVCenter ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: root . offset ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
} ,
/ / / R i g h t E d g e
@ -304,6 +310,7 @@ DragDrop.DropArea {
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignRight ; verticalItemAlignment: Grid . AlignVCenter ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: root . offset ;
}
} ,
State {
@ -316,7 +323,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignRight ; verticalItemAlignment: Grid . AlignVCenter ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: root . offset ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
} ,
State {
@ -329,7 +337,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignRight ; verticalItemAlignment: Grid . AlignVCenter ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: root . offset ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
} ,
/ / / B o t t o m E d g e
@ -344,6 +353,7 @@ DragDrop.DropArea {
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignHCenter ; verticalItemAlignment: Grid . AlignBottom
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: root . offset ; anchors.verticalCenterOffset: 0 ;
}
} ,
State {
@ -356,7 +366,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignHCenter ; verticalItemAlignment: Grid . AlignBottom
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: root . offset ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
} ,
State {
@ -369,7 +380,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignHCenter ; verticalItemAlignment: Grid . AlignBottom
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: 0 ; anchors.rightMargin: root . offset ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
} ,
/ / / T o p E d g e
@ -384,6 +396,7 @@ DragDrop.DropArea {
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignHCenter ; verticalItemAlignment: Grid . AlignTop
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: root . offset ; anchors.verticalCenterOffset: 0 ;
}
} ,
State {
@ -396,7 +409,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignHCenter ; verticalItemAlignment: Grid . AlignTop
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: root . offset ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
} ,
State {
@ -409,7 +423,8 @@ DragDrop.DropArea {
}
PropertyChanges {
target: mainLayout ; horizontalItemAlignment: Grid . AlignHCenter ; verticalItemAlignment: Grid . AlignTop
anchors.leftMargin: 0 ; anchors.rightMargin: 0 ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.leftMargin: 0 ; anchors.rightMargin: root . offset ; anchors.topMargin: 0 ; anchors.bottomMargin: 0 ;
anchors.horizontalCenterOffset: 0 ; anchors.verticalCenterOffset: 0 ;
}
}
]
@ -1286,7 +1301,7 @@ DragDrop.DropArea {
x: {
if ( dock && ( plasmoid . configuration . panelPosition === Latte . Dock . Justify ) && root . isHorizontal
&& ! root . editMode && ! root . drawShadowsExternal ) {
return ( ( dock . width / 2 ) - ( root . maxLength / 2 ) )
return ( ( dock . width / 2 ) - ( root . maxLength / 2 ) + root . offset )
} else {
if ( ( visibilityManager . inSlidingIn || visibilityManager . inSlidingOut ) && root . isVertical ) {
return ;
@ -1311,7 +1326,7 @@ DragDrop.DropArea {
y: {
if ( dock && ( plasmoid . configuration . panelPosition === Latte . Dock . Justify ) && root . isVertical
&& ! root . editMode && ! root . drawShadowsExternal ) {
return ( ( dock . height / 2 ) - ( root . maxLength / 2 ) ) ;
return ( ( dock . height / 2 ) - ( root . maxLength / 2 ) + root . offset ) ;
} else {
if ( ( visibilityManager . inSlidingIn || visibilityManager . inSlidingOut ) && root . isHorizontal ) {
return ;