Paste P125

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on Oct 30 2017, 10:57 AM.
diff --git a/package/contents/ui/MenuRepresentation.qml b/package/contents/ui/MenuRepresentation.qml
index 6a7c316..14573c4 100644
--- a/package/contents/ui/MenuRepresentation.qml
+++ b/package/contents/ui/MenuRepresentation.qml
@@ -92,9 +92,14 @@ PlasmaCore.Dialog {
}
function popupPosition(width, height) {
- var screen = plasmoid.availableScreenRect;
- screen.x += plasmoid.screenGeometry.x;
- screen.y += plasmoid.screenGeometry.y;
+ var screenAvail = plasmoid.availableScreenRect;
+ var screenGeom = plasmoid.screenGeometry;
+ //QtBug -
+ var screen = Qt.rect(screenAvail.x + screenGeom.x,
+ screenAvail.y + screenGeom.y,
+ screenAvail.width,
+ screenAvail.height);
+
var offset = units.gridUnit;
// Fall back to bottom-left of screen area when the applet is on the desktop or floating.
davidedmundson edited the content of this paste. (Show Details)Oct 30 2017, 10:57 AM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.
davidedmundson updated the paste's language from autodetect to autodetect.