<table><tr><td style="">ahiemstra created this revision.<br />ahiemstra added a reviewer: Kirigami.<br />Herald added a project: Kirigami.<br />Herald added a subscriber: plasma-devel.<br />ahiemstra requested review of this revision.
</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/D29127">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This makes Card account for the negative top and bottom margin when used<br />
in its default Banner height. In addition, only add top and bottom<br />
padding when there is a content item. This ensures that cards without<br />
contents have a correct default height that doesn't leave any gaps at<br />
the bottom.</p>

<p>Most prominently, this removes the need for any height specification in<br />
the new Kirigami Gallery main page and fixes the cards' height when<br />
displaying only one column.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>All cards in Kirigami Gallery display correctly now.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R169 Kirigami</div></div></div><br /><div><strong>BRANCH</strong><div><div>cardheight</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29127">https://phabricator.kde.org/D29127</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/controls/Card.qml<br />
src/controls/templates/AbstractCard.qml</div></div></div><br /><div><strong>To: </strong>ahiemstra, Kirigami<br /><strong>Cc: </strong>plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, ahiemstra, davidedmundson, mart<br /></div>