From c3f191efb4676140cc07796ee8a6fe00bfb145bf Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Wed, 30 May 2018 12:36:51 +0300 Subject: Fix inspector button positions when moving editor between screens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can't rely Image element's sourceSize, as it can change when pixelratio changes and @2x images are used. Now we hardcode space taken by the image. Change-Id: I62faeca8dd3ae22dc42af2ada593ba4dee7194d8 Reviewed-by: Janne Kangas Reviewed-by: Tomi Korpipää --- src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml index 4806bc25..dd5a8d25 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml @@ -168,7 +168,7 @@ Rectangle { Item { Layout.alignment: Qt.AlignTop - width: animatedPropertyButton.sourceSize.width + width: 16 height: _controlBaseHeight visible: model.modelData.animatable @@ -242,7 +242,7 @@ Rectangle { } Item { Layout.alignment: Qt.AlignTop - width: controlledPropertyButton.sourceSize.width + width: 16 height: _controlBaseHeight visible: model.modelData.controllable -- cgit v1.2.3