02-12-2021, 07:54 PM
The short answer is you cannot. There is no canvas because the browser renders it and many things from plugins, zoom, and accessibility features can alter the actual size on the browser.
The only reliable way is to use JavaScript on the browser and pass the info back which requires a round trip call back to the server.
You can use auto size options if you simply want it to adjust to show all items.
The only reliable way is to use JavaScript on the browser and pass the info back which requires a round trip call back to the server.
You can use auto size options if you simply want it to adjust to show all items.