[Representation] Only remove top/bottom padding when header/footer is visible
This commit is contained in:
parent
479c90137f
commit
904e9bb856
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user