function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NisseKnudsenNisseKnudsen 

Retrieve actual Page size

Hello Community!

 

I got a problem, that I would like to solve, but I can't find information in the apex/vf guides.

 

I am using a javascript chart which size is set to fixed values, e.g. 800px. But I would like to resize it dynamically by retrieving information about the page size, for example

 

apexPages.currentPage.getSize();

 

Does anybody know how this could be done?

 

Thanks and Regards

 

Nisse

bob_buzzardbob_buzzard

You'd have to do this client side in javascript I think. Unfortunately the mechanism varies between browsers.

 

There's information here on getting the window size : http://www.geekpedia.com/code100_Get-window-width-and-height.html