large image in Imageviewer and scroll

12 views
Skip to first unread message

Peter Bell

unread,
May 2, 2020, 12:28:09 PM5/2/20
to CodenameOne Discussions
I have a problem with scrolling back to the top of the form.

i  have a Form with two containers, the first one has a multibutton and the second one an imageviewer.
the image in the imageviewer is bigger than the screen. 

i use  iv.setImageInitialPosition(IMAGE_FIT);

The form is set scollable. 

When i pan the image in the imageviewer till i  dont see the multibutton i cant go back upwards to see the multibutton.
Is there a solution, 

i cant make the image smaller because i have to read small numbers in the image.   

i solved it for a part with a button on the botton when pressed the button at the top is focused. But i have to make a big sweep to get to the button at the bottom. that is anoying.  Are there another solutions?

ciao 
Peter Bell

Shai Almog

unread,
May 2, 2020, 11:16:46 PM5/2/20
to CodenameOne Discussions
Image viewer assumes its parent isn't scrollable. Pan and scrolling are features that collide with one another.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages