Jump to content

Browser resize lock


Deks

Recommended Posts

Hello,

 

i wanna make browser resizable =  false at some point of resizing my browser window, is that possible?

Here is code where i wanna implement it .

 

winHeight = window.innerHeight;     //get innerHeight
wHeight = winHeight - 90;                //reduce it to fit with grid

$("#grid").jqGrid('setGridHeight',wHeight);

jQuery(window).resize(function(){
gridId = "grid";
gridWidth = $('#gbox_' + gridId).parent().width();
$('#' + gridId).jqGrid('setGridWidth',gridWidth);                  //resize width

winHeight = window.innerHeight;
wHeight = winHeight - 90;
if(wHeight < 110){                                           
	wHeight = 110;                     //stop resizing grid
	$('#'+ gridId).jqGrid('setGridHeight',wHeight);		
}else{
$('#'+ gridId).jqGrid('setGridHeight',wHeight);                     //resize height
}

 

So i want that my browser can't be resizable to lower when he have, for example, width =360 and height =110.

 

Any ideas?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/248933-browser-resize-lock/
Share on other sites

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.