<table><tr><td style="">davidedmundson added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17975">View Revision</a></tr></table><br /><div><div><p>BTW, if you want a neater solution: (though consider this optional)</p>
<p>At the moment you're moving mainLayout about and then doing maths on the window height to make sure we get the same padding underneath.</p>
<p>Instead, use Layout.topMargin on the titleBar and Layout.bottomMargin on the lowerPart.</p>
<p>Then QtLayouts can do all the hard work, and you're spreading this logic about to the relevant places next to where you want the padding.</p>
<p>(you'll have to bump "import QtQuick.Layouts 1.1" to 1.2)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17975">https://phabricator.kde.org/D17975</a></div></div><br /><div><strong>To: </strong>rooty, VDG, Plasma, ngraham<br /><strong>Cc: </strong>Codezela, abetts, filipf, davidedmundson, hein, ndavis, plasma-devel, kvanton, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, sebas, apol, mart<br /></div>