Jump to content

IE window resize issue


mark110384

Recommended Posts

Hey guys I have a slight problem with Internet Explorer, I have written a function that determines if the browser has been resized to by a specific percent. If the user resizes it too small then the browser will minimise to the preset minimum size for example 25% of the users screen if it goes below that then it will automatically resize to 25%. It works fine if there is one tab but when there is another tab open then it will not resize the browser. I am using

 


self.resizeTo

 

to resize it. Does anyone have any suggestions of a work around to this problem. Thanks

Link to comment
https://forums.phpfreaks.com/topic/139528-ie-window-resize-issue/
Share on other sites

I have used the following to detect if the browser tab is selected and if it is then do the function, it doesn't work as I get a JS Error saying Access is Denied

 


function onFocus(){

change_scroll()
};

if (/*@cc_on!@*/false) { // check for Internet Explorer
document.onfocusin = onFocus;
} else {
window.onfocus = onFocus;
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.