Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Finding out if Window is maximised


Ron
 Share

Recommended Posts

Hi Guys and girls,

 

Is there an easy way to find out if the window is maximised other than hard coding all the screen sizes for various resolutions and using get (windowWidth) etc. to do a compare?

 

Kind regards Ron

Link to comment
Share on other sites

Hi Ron

I don't think there is an easy way but you could try a calculation comparing screen size or desktop size to window size. However, you have to account for whether various items are showing - the status bar (Windows), toolbars.

 

What are you wanting to do? Why do you want to know? For example, you could just maximise the window anyway and this would have no effect if it was already maximised. There may be a better way than what you are thinking. It is always best to explain what you are trying to do as well as what you (think) you need to do - then you could get some better methods to what you might have been thinking.

Link to comment
Share on other sites

Hi David,

 

Great comments as usual..

 

In my solution everything is done in windows which are centered.

 

If you maximise the layout and then navigate to another layout, the new layout is shown in the default window size. Part of the navigation script creates the screen size and centers the window.

 

What I am trying to achieve is if I can find out if the screen is maximised, then I can bypass the screen resizing script and keep the window maximised.

 

Kind regards Ron

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use