mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix add printer scrollview overlaps buttons.
CURA-7336
This commit is contained in:
parent
cbccb08103
commit
175121e86c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue