minor tweaks
commit6c275e4ea3dca922b22840de4bdbc52673e306e9
authorMichael Zanetti <michael.zanetti@canonical.com>
dateMon 13 Mar 2017, 12:47 (10 years ago)
parentd73aca0
qml/Stage/Spread/Spread.qml+1−1
@@ -91,7 +91,7 @@ Item {
9191
9292 readonly property real visibleItemCount: (spreadWidth / spreadItemWidth) / (1 - itemOverlap)
9393
94− readonly property real spreadTotalWidth: Math.max(2,totalItemCount) * spreadWidth / visibleItemCount
94+ readonly property real spreadTotalWidth: totalItemCount * spreadWidth / visibleItemCount
9595
9696 readonly property real centeringOffset: Math.max(spreadWidth - spreadTotalWidth + (leftStackXPos - leftMargin) * 2, 0) / (2 * spreadWidth)
9797
qml/Stage/Spread/Workspaces.qml+1−1
@@ -192,7 +192,7 @@ Item {
192192 MouseArea {
193193 anchors.fill: parent
194194 onClicked: {
195− screenWindow.screen.currentWorkspace = model.workspace
195+ model.workspace.activate()
196196 }
197197 }
198198