B4J Question Webview height

hookshy

Well-Known Member
Licensed User
Longtime User
I have to download a datalogging file from a webserver and even if I do set prefheight parameter to webview inside b4j I can not control the height.

here is what the webserver generates and it could be a 1000 elements list

IDDateTimeled albastru
12015/07/2416:33:411
22015/07/2416:33:441
32015/07/2416:33:501
42015/07/2421:26:381
52015/07/2421:26:421


the core of the webpage is:
<body>
<table border="1" align="center">
Datalogging_0 (Here the webserver dump all the above data)
</table>

</body>
</html>


here is how I initialise my webview

B4X:
    web(index).Initialize("datalogging")
    web(index).Alpha=1
    pnl_tixi(k).AddNode(web(index),x,y,w,h)
  
    web(index).tag="datalogging_"&index
    web(index).id=pnl_tixi(k).NumberOfNodes-1
    web(index).LoadUrl(File.GetUri(File.DirAssets,"blank.html"))

Q:
I would like to allow user to scroll the data in order to view all 1000 elements ...now my webview is resizing to the list height and I can only see the data that fit the screen ?

Thank you
 
Top