Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/main.qml
Context not available. | |||||
84 | 84 | | |||
---|---|---|---|---|---|
85 | // Don't apply the right margin if the folderView is in column mode and not overflowing. | 85 | // Don't apply the right margin if the folderView is in column mode and not overflowing. | ||
86 | // In this way, the last column remains droppable even if a small part of the icon is behind a panel. | 86 | // In this way, the last column remains droppable even if a small part of the icon is behind a panel. | ||
87 | rightMargin: folderViewLayer.ready && (folderViewLayer.view.overflowing || folderViewLayer.view.flow == GridView.FlowLeftToRight | 87 | rightMargin: folderViewLayer.ready | ||
88 | || folderViewLayer.view.layoutDirection == Qt.RightToLeft) | | |||
89 | && (isContainment && plasmoid.availableScreenRect) && parent | 88 | && (isContainment && plasmoid.availableScreenRect) && parent | ||
90 | ? parent.width - (plasmoid.availableScreenRect.x + plasmoid.availableScreenRect.width) : 0 | 89 | ? parent.width - (plasmoid.availableScreenRect.x + plasmoid.availableScreenRect.width) : 0 | ||
91 | 90 | | |||
92 | // Same mechanism as the right margin but applied here to the bottom when the folderView is in row mode. | 91 | // Same mechanism as the right margin but applied here to the bottom when the folderView is in row mode. | ||
93 | bottomMargin: folderViewLayer.ready && (folderViewLayer.view.overflowing || folderViewLayer.view.flow == GridView.FlowTopToBottom) | 92 | bottomMargin: folderViewLayer.ready | ||
94 | && (isContainment && plasmoid.availableScreenRect) && parent | 93 | && (isContainment && plasmoid.availableScreenRect) && parent | ||
95 | ? parent.height - (plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height) : 0 | 94 | ? parent.height - (plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height) : 0 | ||
96 | } | 95 | } | ||
Context not available. |