From 734cbe2f4c21b15eb39d5bdfab69ba99e15d9cae Mon Sep 17 00:00:00 2001 From: arcan1s Date: Mon, 9 May 2016 04:07:58 +0300 Subject: [PATCH] upload vertical alignment patch, fix code (#94) --- patches/fix-vertical-alignment.patch | 26 +++++++++++++++++++ .../package/contents/ui/main.qml | 2 +- .../package/contents/ui/main.qml | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 patches/fix-vertical-alignment.patch diff --git a/patches/fix-vertical-alignment.patch b/patches/fix-vertical-alignment.patch new file mode 100644 index 0000000..136087c --- /dev/null +++ b/patches/fix-vertical-alignment.patch @@ -0,0 +1,26 @@ +diff --git a/sources/awesome-widget/package/contents/ui/main.qml b/sources/awesome-widget/package/contents/ui/main.qml +index 79c6ddf..0e20bc9 100644 +--- a/sources/awesome-widget/package/contents/ui/main.qml ++++ b/sources/awesome-widget/package/contents/ui/main.qml +@@ -84,7 +84,7 @@ Item { + // ui + Text { + id: text +- anchors.fill: Plasmoid.Layout ++ anchors.fill: parent + renderType: Text.NativeRendering + textFormat: Text.RichText + wrapMode: plasmoid.configuration.wrapText ? Text.WordWrap : Text.NoWrap +diff --git a/sources/desktop-panel/package/contents/ui/main.qml b/sources/desktop-panel/package/contents/ui/main.qml +index 5a1e9b6..20f8732 100644 +--- a/sources/desktop-panel/package/contents/ui/main.qml ++++ b/sources/desktop-panel/package/contents/ui/main.qml +@@ -57,7 +57,7 @@ Item { + + // ui + GridLayout { +- anchors.fill: Plasmoid.Layout ++ anchors.fill: parent + columns: plasmoid.configuration.verticalLayout ? 1 : dpAdds.numberOfDesktops() + rows: plasmoid.configuration.verticalLayout ? dpAdds.numberOfDesktops() : 1 + diff --git a/sources/awesome-widget/package/contents/ui/main.qml b/sources/awesome-widget/package/contents/ui/main.qml index 79c6ddf..0e20bc9 100644 --- a/sources/awesome-widget/package/contents/ui/main.qml +++ b/sources/awesome-widget/package/contents/ui/main.qml @@ -84,7 +84,7 @@ Item { // ui Text { id: text - anchors.fill: Plasmoid.Layout + anchors.fill: parent renderType: Text.NativeRendering textFormat: Text.RichText wrapMode: plasmoid.configuration.wrapText ? Text.WordWrap : Text.NoWrap diff --git a/sources/desktop-panel/package/contents/ui/main.qml b/sources/desktop-panel/package/contents/ui/main.qml index 5a1e9b6..20f8732 100644 --- a/sources/desktop-panel/package/contents/ui/main.qml +++ b/sources/desktop-panel/package/contents/ui/main.qml @@ -57,7 +57,7 @@ Item { // ui GridLayout { - anchors.fill: Plasmoid.Layout + anchors.fill: parent columns: plasmoid.configuration.verticalLayout ? 1 : dpAdds.numberOfDesktops() rows: plasmoid.configuration.verticalLayout ? dpAdds.numberOfDesktops() : 1