@@ -6,8 +6,7 @@ import "../../Components"
66
77Item {
88 id: root
9− implicitWidth: listView.count * (height * 16/9 + listView.spacing) - listView.spacing
10−// color: "blue"
9+ implicitWidth: listView.contentWidth
1110
1211 property QtObject screen: null
1312 property alias workspaceModel: listView.model
@@ -71,7 +70,7 @@ Item {
7170 leftMargin: itemWidth
7271 rightMargin: itemWidth
7372
74− property int itemWidth: height * 16 / 9
73+ property int itemWidth: height * screen.physicalSize.width / screen.physicalSize.height
7574 property int foldingAreaWidth: units.gu(10)
7675 property real realContentX: contentX - originX + leftMargin
7776 property int dropItemIndex: -1
@@ -264,7 +263,7 @@ Item {
264263 }
265264
266265 onClicked: {
267− WorkspaceManager.activeWorkspace = fakeDragItem.workspace
266+ screenWindow.screen.activeWorkspace = fakeDragItem.workspace
268267 }
269268
270269 WorkspacePreview {