Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-02-22 18:07:11 +0300
committerJaime van Kessel <nallath@gmail.com>2022-02-22 18:07:11 +0300
commit0d85b2be7f1df479b2619000732febcb0f3db0b7 (patch)
tree9b2ba9df476bada5e82a9a580d0bee9310789543 /plugins/Marketplace/resources
parenta36fedabe5a7aa3a6abec462905f16ee6c51a678 (diff)
Ensure that scrollbar is centered
CURA-8762
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/Packages.qml15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/Marketplace/resources/qml/Packages.qml b/plugins/Marketplace/resources/qml/Packages.qml
index 194c90c248..17fa884ad7 100644
--- a/plugins/Marketplace/resources/qml/Packages.qml
+++ b/plugins/Marketplace/resources/qml/Packages.qml
@@ -53,8 +53,8 @@ ListView
// Vertical ScrollBar, styled similarly to the scrollBar in the settings panel
id: verticalScrollBar
visible: packages.contentHeight > packages.height
-
- background: Item{}
+ anchors.right: parent.right
+ background: Item {}
contentItem: Rectangle
{
@@ -83,7 +83,16 @@ ListView
{
manageableInListView: packages.packagesManageableInListView
packageData: model.package
- width: parent.width - UM.Theme.getSize("default_margin").width - UM.Theme.getSize("narrow_margin").width
+ width: {
+ if(verticalScrollBar.visible)
+ {
+ return parent.width - UM.Theme.getSize("default_margin").width - UM.Theme.getSize("default_margin").width
+ }
+ else
+ {
+ return parent.width - UM.Theme.getSize("default_margin").width
+ }
+ }
color: cardMouseArea.containsMouse ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("main_background")
}
}