Fix bad tool window placement

This commit is contained in:
Brad Davis 2016-02-23 20:37:46 -08:00
parent 4074ba172d
commit fa23e2023e
2 changed files with 5 additions and 6 deletions

View file

@ -20,8 +20,10 @@ Windows.Window {
property string newTabSource property string newTabSource
property alias tabView: tabView property alias tabView: tabView
onParentChanged: { onParentChanged: {
x = 120; if (parent) {
y = 120; x = 120;
y = 120;
}
} }
Settings { Settings {

View file

@ -11,10 +11,7 @@ import "../js/Utils.js" as Utils
FocusScope { FocusScope {
id: desktop id: desktop
objectName: "desktop" objectName: "desktop"
anchors.fill: parent
// Allow the scale of the desktop to be changed without screwing up the size relative to the parent.
height: parent.height / scale
width: parent.width / scale
onHeightChanged: d.repositionAll(); onHeightChanged: d.repositionAll();
onWidthChanged: d.repositionAll(); onWidthChanged: d.repositionAll();