GODT-1043 Fix showing long login error in GUI dialog
This commit is contained in:
@ -18,6 +18,7 @@
|
|||||||
// Dialog with adding new user
|
// Dialog with adding new user
|
||||||
|
|
||||||
import QtQuick 2.8
|
import QtQuick 2.8
|
||||||
|
import QtQuick.Controls 2.1
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import ProtonUI 1.0
|
import ProtonUI 1.0
|
||||||
|
|
||||||
@ -83,6 +84,9 @@ StackLayout {
|
|||||||
text : ""
|
text : ""
|
||||||
color: Style.main.textBlue
|
color: Style.main.textBlue
|
||||||
visible: false
|
visible: false
|
||||||
|
width: root.width
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
|
|
||||||
// prevent any action below
|
// prevent any action below
|
||||||
|
|||||||
@ -70,7 +70,8 @@ Dialog {
|
|||||||
id: topSep
|
id: topSep
|
||||||
color : "transparent"
|
color : "transparent"
|
||||||
width : Style.main.dummy
|
width : Style.main.dummy
|
||||||
height : root.height/2 - (dialogNameAndPassword.heightInputs)/2
|
// Hacky hack: +10 is to make title of Dialog bigger so longer error can fit just fine.
|
||||||
|
height : root.height/2 + 10 - (dialogNameAndPassword.heightInputs)/2
|
||||||
}
|
}
|
||||||
|
|
||||||
InputField {
|
InputField {
|
||||||
|
|||||||
Reference in New Issue
Block a user