Merge branch '4.6'

This commit is contained in:
Ghostkeeper 2020-04-01 17:52:17 +02:00
commit da2723f81f
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ Item
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
height: maxItemCountAtOnce * UM.Theme.getSize("action_button").height height: (maxItemCountAtOnce * UM.Theme.getSize("action_button").height) - UM.Theme.getSize("default_margin").height
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded ScrollBar.vertical.policy: ScrollBar.AsNeeded

View File

@ -56,7 +56,7 @@ Item
ScrollBar.vertical.policy: ScrollBar.AsNeeded ScrollBar.vertical.policy: ScrollBar.AsNeeded
property int maxItemCountAtOnce: 8 // show at max 8 items at once, otherwise you need to scroll. property int maxItemCountAtOnce: 8 // show at max 8 items at once, otherwise you need to scroll.
height: Math.min(contentHeight, maxItemCountAtOnce * UM.Theme.getSize("action_button").height) height: Math.min(contentHeight, (maxItemCountAtOnce * UM.Theme.getSize("action_button").height) - UM.Theme.getSize("default_margin").height)
visible: networkPrinterListView.count > 0 visible: networkPrinterListView.count > 0