@@ -6,8 +6,7 @@ import "../../Components"
9− implicitWidth: listView.count * (height * 16/9 + listView.spacing) - listView.spacing
9+ implicitWidth: listView.contentWidth
12 property QtObject screen: null
11 property QtObject screen: null
13 property alias workspaceModel: listView.model
12 property alias workspaceModel: listView.model
@@ -71,7 +70,7 @@ Item {
71 leftMargin: itemWidth
70 leftMargin: itemWidth
72 rightMargin: itemWidth
71 rightMargin: itemWidth
74− property int itemWidth: height * 16 / 9
73+ property int itemWidth: height * screen.physicalSize.width / screen.physicalSize.height
75 property int foldingAreaWidth: units.gu(10)
74 property int foldingAreaWidth: units.gu(10)
76 property real realContentX: contentX - originX + leftMargin
75 property real realContentX: contentX - originX + leftMargin
77 property int dropItemIndex: -1
76 property int dropItemIndex: -1
@@ -264,7 +263,7 @@ Item {
266 onClicked: {
265 onClicked: {
267− WorkspaceManager.activeWorkspace = fakeDragItem.workspace
266+ screenWindow.screen.activeWorkspace = fakeDragItem.workspace
270 WorkspacePreview {
269 WorkspacePreview {