Fickable + TextField + InputContext
-
Anyone have any idea how to force scroll the Flickable to a specific child if the Flickable is resized due to the inputContext's visibility?
ETA:
So each TextField has a function like so:
@
TextField {
...
onActiveFocusChanged: if (activeFocus) Flick.ScrollTo(textfieldid)
}
@
In the Flick.js
@
function scrollTo(child) {flickable.contentY = child.y + child.height - flickable.height;
}
@
Here's where I run into some problems. When the contentY changes, the flickable seems to steal focus. When that happens, the inputContext is no longer visible (the vkb goes away). After the inputContext goes into hiding, the flickable resizes back to normal (it's anchored to the top of the inputContext's item). Is there a way to have the TextField maintain focus while the flickable scrolls? Or am I looking at the problem the wrong way?[Edit: Please wrap code in @ tags. Thanks -- mlong]
-
Updated. Has anyone done something similar?