@@ -70,7 +70,8 @@ Item {
70 leftMargin: itemWidth
70 leftMargin: itemWidth
71 rightMargin: itemWidth
71 rightMargin: itemWidth
73+ property var screenSize: screen.availableModes[screen.currentModeIndex].size
73− property int itemWidth: height * screen.physicalSize.width / screen.physicalSize.height
74+ property int itemWidth: height * screenSize.width / screenSize.height
74 property int foldingAreaWidth: units.gu(10)
75 property int foldingAreaWidth: units.gu(10)
75 property real realContentX: contentX - originX + leftMargin
76 property real realContentX: contentX - originX + leftMargin
76 property int dropItemIndex: -1
77 property int dropItemIndex: -1
@@ -185,7 +186,7 @@ Item {
185 height: listView.height
186 height: listView.height
186 width: listView.itemWidth
187 width: listView.itemWidth
187 background: root.background
188 background: root.background
188− screenHeight: root.screen.physicalSize.height
189+ screenHeight: screen.availableModes[screen.currentModeIndex].size.height
189 containsDrag: listView.hoveredWorkspaceIndex == index
190 containsDrag: listView.hoveredWorkspaceIndex == index
191 MouseArea {
192 MouseArea {
@@ -299,7 +300,7 @@ Item {
299 height: listView.height
300 height: listView.height
300 width: listView.itemWidth
301 width: listView.itemWidth
301 background: root.background
302 background: root.background
302− screenHeight: root.screen.physicalSize.height
303+ screenHeight: screen.availableModes[screen.currentModeIndex].size.height
303 visible: Drag.active
304 visible: Drag.active
305 Drag.active: hoverMouseArea.drag.active
306 Drag.active: hoverMouseArea.drag.active