Skip to content

Commit

Permalink
Only extend scrollbar for QtQuickControls 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Mar 18, 2023
1 parent 172d783 commit 341b30a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions resources/qml/SidebarStageMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,16 @@ Item
customPrintSetup.children[1].visible = false // extruder tabs
customPrintSetup.children[0].visible = false // profile selector
customPrintSetup.children[0].height = 0
customPrintSetup.children[2].anchors.rightMargin = -UM.Theme.getSize("narrow_margin").width

var settingView = customPrintSetup.children[2].children[0]
settingView.children[4].ScrollBar.vertical.rightPadding = UM.Theme.getSize("narrow_margin").width
if(isLE413)
{
customPrintSetup.children[2].anchors.rightMargin = 0
} else {
// extend scrollbar to the window right edge
customPrintSetup.children[2].anchors.rightMargin = -UM.Theme.getSize("narrow_margin").width
settingView.children[4].ScrollBar.vertical.rightPadding = UM.Theme.getSize("narrow_margin").width
}

var recommendedPrintSetup = printSetupChildren.children[0]
if(!isLE52)
Expand Down

0 comments on commit 341b30a

Please sign in to comment.