Waldemar Lima Well-Known Member Licensed User Longtime User Nov 27, 2019 #1 hello everyone ! how can i remove scrolls from webview on b4j ?
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2019 #2 Code: Copy WebView1.LoadUrl("https://www.b4x.com") Wait For WebView1_PageFinished (Url As String) Dim jo As JavaObject = WebView1 jo.RunMethodJO("getEngine", Null).RunMethod("executeScript", Array( _ $"document.body.style.overflow = 'hidden';"$)) Seems to disable scrolling as well as hiding the bars. Upvote 0
Code: Copy WebView1.LoadUrl("https://www.b4x.com") Wait For WebView1_PageFinished (Url As String) Dim jo As JavaObject = WebView1 jo.RunMethodJO("getEngine", Null).RunMethod("executeScript", Array( _ $"document.body.style.overflow = 'hidden';"$)) Seems to disable scrolling as well as hiding the bars.