RDMLX WebView

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
soapagent
Posts: 93
Joined: Mon Jul 16, 2012 3:19 am

RDMLX WebView

Post by soapagent » Wed Jun 13, 2018 12:55 am

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?

soapagent
Posts: 93
Joined: Mon Jul 16, 2012 3:19 am

Re: RDMLX WebView

Post by soapagent » Wed Jun 13, 2018 1:02 am

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?

jasonzhou
Posts: 59
Joined: Tue Jan 10, 2017 11:26 pm

Re: RDMLX WebView

Post by jasonzhou » Wed Jun 13, 2018 2:24 am

May I know your client system? Is it iOS or Android? Thanks.

soapagent
Posts: 93
Joined: Mon Jul 16, 2012 3:19 am

Re: RDMLX WebView

Post by soapagent » Wed Jun 13, 2018 5:28 pm

Jason, this is on ios (ipad)

jasonzhou
Posts: 59
Joined: Tue Jan 10, 2017 11:26 pm

Re: RDMLX WebView

Post by jasonzhou » Thu Jun 14, 2018 7:22 pm

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

soapagent
Posts: 93
Joined: Mon Jul 16, 2012 3:19 am

Re: RDMLX WebView

Post by soapagent » Sun Jun 17, 2018 6:53 pm

Jason

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

Thanks for your help.

Jim

Post Reply