I need to show the only component on the form - HTMLComponent
. Reaching the bottom of the form/component while vertical scrolling scroll bar jumps back to the top of the form. I need to prevent this.
I've tried to turn on/off scrolling on the form and HTMLComponent
but anyway if there's a scroll bar - it will return to the top from the bottom. Also I've tried border and box layouts and additional container for HTMLComponent
- no use.
Any ideas how to prevent such scrolling issue?
...or, you can paste this code on your Form class
That's also work for me
In LWUITImplementation we have function getDragPathTime(). This javaDoc about this function:
I also was problem especially in devices with OS S-60 Nokia. Lists was jumped from buttom to top. i solved this problem by change the return value. I change the value to 600( from 200). this occurs to fewer sampling and prevent the "jump".
You can try with making the whole component focusable which might help in scrolling in a proper way. Along with this you should add your html component in Boderlayout.center of form and make form scrollable true and cyclic focus false.
form.serScrollable(false)
orform.setCyclicFocus(false)
didn't work for me. I have a form and just a singleHTMLComponent
in it.The problem is in
HTMLComponent
itself and disabling focus of the form won't affect it.If you want to get rid of the bottom/top jump scroll, you can use
form.setCyclicFocus(false)
You should stick with border layout and place the HTML component in the center for this particular use case. You can disable form scrolling since the HTML component is indeed scrollable by default: