Skip to content

Commit

Permalink
Merge pull request #39 from ilarth/master
Browse files Browse the repository at this point in the history
Fix popup size on Plasma 5.26
  • Loading branch information
Cqoicebordel authored Jan 3, 2025
2 parents c767b29 + 9f2ac02 commit 5642589
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cqcb.plasma.webslice/contents/ui/ConfigGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ Item {
textFromValue: function(value, locale) {
return i18nc('Abbreviation for pixels', '%1 px', value);
}
valueFromText: function(text) {
return parseInt(text.split(' px')[0], 10)
}
Layout.columnSpan: 1
}

Expand All @@ -189,6 +192,9 @@ Item {
textFromValue: function(value, locale) {
return i18nc('Abbreviation for pixels', '%1 px', value);
}
valueFromText: function(text) {
return parseInt(text.split(' px')[0], 10)
}
Layout.columnSpan: 1
}

Expand Down
4 changes: 4 additions & 0 deletions cqcb.plasma.webslice/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ Item {

width: (displaySiteBehaviour) ? 0 : webPopupWidth
height: (displaySiteBehaviour) ? 0 : webPopupHeight

implicitWidth: width
implicitHeight: height

Layout.fillWidth: fillWidthAndHeight
Layout.fillHeight: fillWidthAndHeight

Expand Down

0 comments on commit 5642589

Please sign in to comment.