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 alias tabView: tabView
onParentChanged: {
x = 120;
y = 120;
if (parent) {
x = 120;
y = 120;
}
}
Settings {

View file

@ -11,10 +11,7 @@ import "../js/Utils.js" as Utils
FocusScope {
id: desktop
objectName: "desktop"
// 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
anchors.fill: parent
onHeightChanged: d.repositionAll();
onWidthChanged: d.repositionAll();