Commit 20ec85a0 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/views/App/MainWindow/ContactEdit): display correctly inputs (no overflow)

parent ab7a8659
...@@ -18,6 +18,12 @@ Item { ...@@ -18,6 +18,12 @@ Item {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
onActiveFocusChanged: {
if (activeFocus) {
textInput.focus = true
}
}
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: textInput.activeFocus && !readOnly color: textInput.activeFocus && !readOnly
......
...@@ -145,6 +145,8 @@ ColumnLayout { ...@@ -145,6 +145,8 @@ ColumnLayout {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
Flickable { Flickable {
id: flick
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
ScrollBar.vertical: ForceScrollBar {} ScrollBar.vertical: ForceScrollBar {}
...@@ -152,18 +154,17 @@ ColumnLayout { ...@@ -152,18 +154,17 @@ ColumnLayout {
boundsBehavior: Flickable.StopAtBounds boundsBehavior: Flickable.StopAtBounds
clip: true clip: true
contentHeight: infoList.height contentHeight: infoList.height
contentWidth: width - ScrollBar.vertical.width - leftMargin - rightMargin
flickableDirection: Flickable.VerticalFlick flickableDirection: Flickable.VerticalFlick
leftMargin: 40 leftMargin: 40
rightMargin: 40 rightMargin: 20
topMargin: 40 topMargin: 40
ColumnLayout { ColumnLayout {
id: infoList id: infoList
anchors.left: parent.left width: flick.contentWidth
anchors.right: parent.right
ListForm { ListForm {
defaultData: _contact.sipAddresses defaultData: _contact.sipAddresses
placeholder: qsTr('sipAccountsInput') placeholder: qsTr('sipAccountsInput')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment