ngraham added a comment.
In D27189#606970 <https://phabricator.kde.org/D27189#606970>, @niccolove wrote: > > The reason why the text is now pushed over is because you added the new `PlasmaCore.FrameSvgItem` *inside* the `RowLayout` that contains the `Heading`. If anything the reverse should be true; the `RowLayout` should be inside the new header SVG. > > That can't be done as far as I know - elements are not displayed correctly when inside. Or maybe it's because I should use Layouts better? I think it should work if you make the `FrameSvgItem` an item inside the top-level `ColumnLayout`, make it fill the width, and make the `RowLayout` a chilt item of the svg with `anchors.fill: parent`. > > >> Also you can't set anchors on an item inside a Layout; it causes binding loops. Anchors are only for positioning items that are outside of Layouts. Items inside Layouts get positioned using properties like `Layout.fillWidth, `Layout.Alignment`, `Layout.maximumWidth`, and so on. > > I'd do that, but as far as I know Layout does not support the negative margin I need to expand the area to the borders :-/ Then you can set the negative margins on the top-level layout, and re-add them as needed for the child items that are below the header. Not ideal though. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D27189 To: niccolove, #vdg, #plasma, ngraham Cc: ngraham, ndavis, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart