Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximizing browser to auto width and height
Message
From
12/05/2014 08:35:51
 
 
To
12/05/2014 02:33:19
General information
Forum:
HTML5
Category:
Troubleshooting
Miscellaneous
Thread ID:
01599852
Message ID:
01599857
Views:
45
>It appears that both the width and height specify the area of the content, not including margins/borders/... - hence the scrollbars
>
>Subtracting a bit for margins gives no scrollbars
>
><Html>  
><!-- saved from url=(0011)about:blank -->
><body onload="ResizeWindow()"> 
>
><table id="Table1">
><tr>
><td>
></td>
></tr>
></table>
>
></body> 
></Html> 
>
><script>
>function ResizeWindow()
>{
>   nBrowserWidth=window.innerWidth
>   nBrowserHeight=window.innerHeight
>   loObject=document.getElementById("Table1")
>   loObject.style.width=(nBrowserWidth -50)+ "px"
>   loObject.style.height=(nBrowserHeight -50) + "px"
>}
></script>
>
That's what I thought as well. Thanks for confirming.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform