Hi,
My CommonDialog has a Column with two TextFields as the content. In landscape mode, when i focus a TextField and the split-view keyboard opens, the dialog is moved up, but since the title and buttons area of the dialog are not resized, the visible area for the content is very small and only contains one of the TextFields. Thus, when I focus on the 2nd TextField and the VKB is opened, i cannot see the field I am entering text into.
I've tried to search for help, but only found some cases where a Flickable was used for this purpose inside a Page like this http://tftfy.blogspot.co.uk/2012/02/...-input-on.html. I tried this approach, but couldn't get it to work inside the dialogs content area. Any ideas on how to define the dialog so that the correct TextField would be visible are appreciated.
Here's my content.
Code:content: Item { id: content height: edPassword.height * 2 + column.spacing * 2 + column.anchors.topMargin + column.anchors.bottomMargin width: parent.width anchors.top: parent.top Column { id: column spacing: platformStyle.paddingMedium anchors.fill: parent anchors { leftMargin: platformStyle.borderSizeMedium rightMargin: platformStyle.borderSizeMedium topMargin: platformStyle.borderSizeMedium } TextField { id: edUsername anchors.left: parent.left anchors.right: parent.right placeholderText: "Enter username" } TextField { id: edPassword anchors.left: parent.left anchors.right: parent.right echoMode: showClearPassword ? TextInput.Normal : TextInput.Password placeholderText: "Enter password" } } }

Reply With Quote

