REPRODUCIBILITY: 100%
OS VERSION: 4.4.0.64
HARDWARE: Vollapone / GS290, 10ii (also .64).
UI LANGUAGE: EN
REGRESSION: not sure.
DESCRIPTION:
Given:
SilicaListView {
id: listView
anchors.fill: parent
// (height and width don't matter)
Component.onCompleted: {
var time = new Date();
if (debug) console.debug(time.toTimeString(Locale.LongFormat).split(':')[0] )
tindex = time.toTimeString(Locale.LongFormat).split(':')[0]
// Does not work
listView.positionViewAtIndex(tindex, ListView.Beginning)
// Also not
positionViewAtEnd()
}
model: listModel
delegate: WeatherItem{
id: delegate
}
// Dosn't matter whether it on.
//VerticalScrollDecorator {flickable: listView}
}
It doesn’t seem possible to set the focus. Also tried setting the index.
PRECONDITIONS:
Create and use SilicaListView.
STEPS TO REPRODUCE:
- See the code above.
- Try to substitute a ListView. No diff.
EXPECTED RESULT:
Seting the index to position the view at should scroll view.
ACTUAL RESULT:
nothing. The onCompleted signal works. But position to index does not.
MODIFICATIONS:
ADDITIONAL INFORMATION:
The number of elements (24) is always restricted to about 10 visible elements (device dependant).
Probably related? https://forum.sailfishos.org/t/silicalistview-positionviewatindex-from-contextmenu-buggy-behaviour
Also tested on a clean (don’t develop on, don’t hack in any way) sony 10ii (not yet .68, still .64). Must be me