Page 1 of 1

RDMLX WebView

Posted: Wed Jun 13, 2018 3:55 pm
by soapagent
I'm using the Longrange container (a whitebox version) to host a VLWEB app. A webview fills the entire client area (apart from the top bar). I've set AllowZoom to No but I an still zoom in and out by pinching and drag the page to the left or right after which it bounces back. How can I prevent this behaviour?

Re: RDMLX WebView

Posted: Wed Jun 13, 2018 4:02 pm
by soapagent
OK, I've found a setting in VLWEB 'Allow Zoom In' which I've set to No so now zooming is disabled. Which is great. I can still slide the whole page to the left or right with my finger (it then bounces back). How can I disable this behaviour?

Re: RDMLX WebView

Posted: Wed Jun 13, 2018 5:24 pm
by jasonzhou
May I know your client system? Is it iOS or Android? Thanks.

Re: RDMLX WebView

Posted: Thu Jun 14, 2018 8:28 am
by soapagent
Jason, this is on ios (ipad)

Re: RDMLX WebView

Posted: Fri Jun 15, 2018 10:22 am
by jasonzhou
Please make sure the form size fits the screen, if form size is bigger than screen, you will see bounce effect when scroll to the end of form. You can try out the following demo code, it works ok, no bounces happen.

Code: Select all

Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #LRNG_FORM)

Mthroutine Name(HandleRequest) Options(*REDEFINE)

  #COM_OWNER.Set_Form Grid_Row_N(1) Grid_Row_Height(Fill)
  #COM_OWNER.Set_Form Grid_Col_N(1) Grid_Col_Width(Fill)

  #COM_Owner.Set_WebView Name('/Form.FIELDS.SITE1WEB') Url('http://www.lansa.com.au') Layout_Row(1) Layout_Col(1) Allowzoom(False)
  
Endroutine

End_Com
Thanks

Re: RDMLX WebView

Posted: Mon Jun 18, 2018 9:53 am
by soapagent
Jason

Doh! All fixed now. I'd missed out q fit to width on my appbar in the layout.

Thanks for your help.

Jim