aboutsummaryrefslogtreecommitdiffstats
path: root/src/remotesettings
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2019-10-02 07:49:51 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2019-10-04 08:59:23 +0000
commit6ffa9fcc790521fe3bda7e8f4052d5a1454b58bf (patch)
tree981417777d19e7d5af43214fabe7f52436f1d570 /src/remotesettings
parent4da3d5147f518a7318a155e69eae51ff2afb90cd (diff)
[companion-app] update size
-Increase minimum width to avoid text eliding and overlapping by scroll bar. -Return base size for proper initialization; size is changed to minimum after window is created if at least one monitor is FH. Fixes: AUTOSUITE-1277 Change-Id: I9d1408e9a660ccfa218ce88d05277264cbe6b59a Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com> Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'src/remotesettings')
-rw-r--r--src/remotesettings/app/main.qml10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/remotesettings/app/main.qml b/src/remotesettings/app/main.qml
index c432f6af..ebb8ee6e 100644
--- a/src/remotesettings/app/main.qml
+++ b/src/remotesettings/app/main.qml
@@ -44,7 +44,9 @@ ApplicationWindow {
visible: true
minimumHeight: 720
- minimumWidth: 400
+ minimumWidth: 450
+ width: 1280
+ height: 800
title: qsTr("Neptune Companion App")
@@ -68,9 +70,6 @@ ApplicationWindow {
if (minH <= 1080 || minW <= 1920) {
root.width = minimumWidth;
root.height = minimumHeight;
- } else {
- root.width = 1280;
- root.height = 800;
}
connectionDialog.open();
@@ -116,8 +115,7 @@ ApplicationWindow {
statusText: client.status
lastUrls: client.lastUrls
- x: (parent.width-width) /2
- y: (parent.height-height) /2
+ anchors.centerIn: parent
onAccepted: {
if (accepted) {