Skip to content

Commit 7b8fd73

Browse files
Modified map sketching so that the picked color is visible
1 parent 1a91120 commit 7b8fd73

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

app/qml/map/MMSketchesDrawer.qml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,24 @@ MMComponents.MMDrawer {
5454
onClicked: root.sketchingController.undo()
5555
}
5656

57-
drawerContent: Column {
58-
id: mainColumn
59-
60-
width: parent.width
61-
spacing: __style.margin10
57+
drawerContent: ColumnLayout {
58+
anchors {
59+
left: parent.left
60+
right: parent.right
61+
}
6262

6363
ScrollView {
64-
width: parent.width
65-
height: scrollRow.height
66-
64+
Layout.fillWidth: true
65+
Layout.preferredHeight: scrollRow.height
66+
6767
ScrollBar.vertical.policy: ScrollBar.AlwaysOff
6868
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
6969

7070
Row {
7171
id: scrollRow
72-
width: parent.width
7372
spacing: __style.margin12
74-
leftPadding: __style.margin6
73+
padding: __style.margin4
74+
anchors.centerIn: parent
7575

7676
Repeater {
7777
id: colorsView
@@ -93,8 +93,8 @@ MMComponents.MMDrawer {
9393
anchors.verticalCenter: parent.verticalCenter
9494
anchors.horizontalCenter: parent.horizontalCenter
9595
radius: width / 2
96-
width: scrollRow.height
97-
height: scrollRow.height
96+
width: __style.margin48
97+
height: __style.margin48
9898
color: isActive ? __style.transparentColor : __style.lightGreenColor
9999
border.width: 2
100100
border.color: isActive ? __style.grassColor : __style.transparentColor

0 commit comments

Comments
 (0)