[Representation] Only remove top/bottom padding when header/footer is visible

This commit is contained in:
Mikel Johnson 2020-12-03 16:03:08 +00:00
parent 479c90137f
commit 904e9bb856

View File

@ -47,8 +47,8 @@ import "private" as Private
leftPadding: backgroundMetrics.getMargin("left") leftPadding: backgroundMetrics.getMargin("left")
rightPadding: backgroundMetrics.getMargin("right") rightPadding: backgroundMetrics.getMargin("right")
topPadding: header ? 0 : backgroundMetrics.getMargin("top") topPadding: header && header.visible ? 0 : backgroundMetrics.getMargin("top")
bottomPadding: footer ? 0 : backgroundMetrics.getMargin("bottom") bottomPadding: footer && footer.visible ? 0 : backgroundMetrics.getMargin("bottom")
Private.BackgroundMetrics { Private.BackgroundMetrics {
id: backgroundMetrics id: backgroundMetrics