mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 22:38:33 +02:00
Fix bad tool window placement
This commit is contained in:
parent
4074ba172d
commit
fa23e2023e
2 changed files with 5 additions and 6 deletions
|
@ -20,9 +20,11 @@ Windows.Window {
|
||||||
property string newTabSource
|
property string newTabSource
|
||||||
property alias tabView: tabView
|
property alias tabView: tabView
|
||||||
onParentChanged: {
|
onParentChanged: {
|
||||||
|
if (parent) {
|
||||||
x = 120;
|
x = 120;
|
||||||
y = 120;
|
y = 120;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Settings {
|
Settings {
|
||||||
category: "ToolWindow.Position"
|
category: "ToolWindow.Position"
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue