mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +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,8 +20,10 @@ Windows.Window {
|
|||
property string newTabSource
|
||||
property alias tabView: tabView
|
||||
onParentChanged: {
|
||||
x = 120;
|
||||
y = 120;
|
||||
if (parent) {
|
||||
x = 120;
|
||||
y = 120;
|
||||
}
|
||||
}
|
||||
|
||||
Settings {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue