TomDuncan Active Member Licensed User Longtime User Dec 18, 2015 #1 Hi all, Is it possible to get the width and height of the html page. I need to create a page that will just fill the page without scroll bars. Thanks Tom And a merry Christmas to all.
Hi all, Is it possible to get the width and height of the html page. I need to create a page that will just fill the page without scroll bars. Thanks Tom And a merry Christmas to all.
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2015 #2 You can use this code: B4X: Dim width As Future = ws.EvalWithResult("return $(window).width()", Null) Dim height As Future = ws.EvalWithResult("return $(window).height()", Null) Log($"Width = ${width.Value}, Height = ${height.Value}"$) Upvote 0
You can use this code: B4X: Dim width As Future = ws.EvalWithResult("return $(window).width()", Null) Dim height As Future = ws.EvalWithResult("return $(window).height()", Null) Log($"Width = ${width.Value}, Height = ${height.Value}"$)