Commit d6eb1208 authored by Niccolò Venerandi's avatar Niccolò Venerandi

Move all margins logic in the containment

parent 4570d415
......@@ -364,6 +364,14 @@ function checkLastSpacer() {
//END components
//BEGIN UI elements
anchors {
leftMargin: currentLayout.isLayoutHorizontal ? panelSvg.fixedMargins.left : 0
rightMargin: currentLayout.isLayoutHorizontal ? panelSvg.fixedMargins.right : 0
topMargin: currentLayout.isLayoutHorizontal ? 0 : panelSvg.fixedMargins.top
bottomMargin: currentLayout.isLayoutHorizontal ? 0 : panelSvg.fixedMargins.bottom
}
Item {
id: lastSpacer
parent: currentLayout
......
......@@ -101,13 +101,6 @@ PlasmaCore.FrameSvgItem {
Item {
id: containmentParent
anchors {
fill: parent
leftMargin: verticalPanel ? 0 : root.fixedMargins.left
rightMargin: verticalPanel ? 0 : root.fixedMargins.right
topMargin: verticalPanel ? root.fixedMargins.top : 0
bottomMargin: verticalPanel ? root.fixedMargins.bottom : 0
}
anchors.fill: parent
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment