Restrict Internet Explorer to be resize to a particular limit

var MinimumWindowHeight = 600;
var MinimumWindowWidth = 1024;
var resizeTimeout;


$(window).resize(function () {
    
clearInterval(resizeTimeout);
    resizeTimeout = setTimeout(function () {
        try {
            if ($(window).height() < MinimumWindowHeight || $(window).width() < MinimumWindowWidth)
                window.resizeTo(MinimumWindowWidth, MinimumWindowHeight + 168);
        } catch (e) { }
    }, 50);
});

This works if both height and width are resized simultaneously from corner end of the browser…but it’s not working if only the height is resized from top end towards downward direction…Actually the window is sticked to taskbar when resized…help will be greatly appreciated

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.