mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-13 05:17:48 +03:00
disable scrolling shadows when Tasks in desktop
This commit is contained in:
parent
a7abf5d309
commit
2e5a018678
@ -17,6 +17,7 @@
|
||||
|
||||
import QtQuick 2.7
|
||||
|
||||
import org.kde.plasma.plasmoid 2.0
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
import org.kde.latte 0.2 as Latte
|
||||
@ -25,7 +26,7 @@ Rectangle {
|
||||
id: listViewBase
|
||||
x: {
|
||||
if (!root.vertical) {
|
||||
if (root.userPanelPosition === Latte.Types.Center) {
|
||||
if (root.userPanelPosition === Latte.Types.Center || plasmoid.location===PlasmaCore.Types.Floating) {
|
||||
return icList.width / 2;
|
||||
} else if (root.userPanelPosition === Latte.Types.Left){
|
||||
return 0;
|
||||
|
@ -35,7 +35,13 @@ Flickable{
|
||||
readonly property bool centered: userPanelPosition === Latte.Types.Center
|
||||
readonly property bool reversed: Qt.application.layoutDirection === Qt.RightToLeft
|
||||
|
||||
readonly property bool contentsExceed: !root.vertical ? Math.floor(contentWidth) > width : Math.floor(contentHeight) > height
|
||||
readonly property bool contentsExceed: {
|
||||
if (root.scrollingEnabled) {
|
||||
return (!root.vertical ? Math.floor(contentWidth) > width : Math.floor(contentHeight) > height);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
readonly property int contentsExtraSpace: {
|
||||
if (contentsExceed) {
|
||||
if (!root.vertical) {
|
||||
|
Loading…
Reference in New Issue
Block a user