Skip to content

Commit

Permalink
#39: propagate widget width to the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
antroids committed Jun 14, 2024
1 parent e3fa09c commit 3b5cc6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ PlasmoidItem {
}

fullRepresentation: Item {
id: representationProxy

Layout.fillWidth: root.vertical ? null : plasmoid.configuration.widgetFillWidth
Layout.fillHeight: root.vertical ? plasmoid.configuration.widgetFillWidth : null

Expand All @@ -277,6 +279,9 @@ PlasmoidItem {
spacing: plasmoid.configuration.widgetSpacing
anchors.left: parent.left
anchors.verticalCenter: root.vertical ? undefined : parent.verticalCenter
anchors.horizontalCenter: root.vertical ? parent.horizontalCenter : undefined
width: root.vertical ? representationProxy.height : representationProxy.width
height: root.vertical ? representationProxy.width : representationProxy.height

transform: [
Rotation {
Expand Down
2 changes: 1 addition & 1 deletion package/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Id": "com.github.antroids.application-title-bar",
"Name": "Application Title Bar",
"License": "GPL-3.0+",
"Version": "0.6.2",
"Version": "0.6.3",
"Website": "https://github.com/antroids/application-title-bar",
"FormFactors": [
"desktop"
Expand Down

0 comments on commit 3b5cc6e

Please sign in to comment.