@@ -70,7 +70,8 @@ Item {
7070 leftMargin: itemWidth
7171 rightMargin: itemWidth
7272
73− property int itemWidth: height * screen.physicalSize.width / screen.physicalSize.height
73+ property var screenSize: screen.availableModes[screen.currentModeIndex].size
74+ property int itemWidth: height * screenSize.width / screenSize.height
7475 property int foldingAreaWidth: units.gu(10)
7576 property real realContentX: contentX - originX + leftMargin
7677 property int dropItemIndex: -1
@@ -185,7 +186,7 @@ Item {
185186 height: listView.height
186187 width: listView.itemWidth
187188 background: root.background
188− screenHeight: root.screen.physicalSize.height
189+ screenHeight: screen.availableModes[screen.currentModeIndex].size.height
189190 containsDrag: listView.hoveredWorkspaceIndex == index
190191 }
191192 MouseArea {
@@ -299,7 +300,7 @@ Item {
299300 height: listView.height
300301 width: listView.itemWidth
301302 background: root.background
302− screenHeight: root.screen.physicalSize.height
303+ screenHeight: screen.availableModes[screen.currentModeIndex].size.height
303304 visible: Drag.active
304305
305306 Drag.active: hoverMouseArea.drag.active