Deks Posted October 11, 2011 Share Posted October 11, 2011 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 More sharing options...
Deks Posted October 16, 2011 Author Share Posted October 16, 2011 Can anyone please give some idea, i still didn't found out solution. Thanks. Link to comment https://forums.phpfreaks.com/topic/248933-browser-resize-lock/#findComment-1279745 Share on other sites More sharing options...
nogray Posted October 18, 2011 Share Posted October 18, 2011 You can add a onresize event to the window and check if the browser is too small, than resize the window. Link to comment https://forums.phpfreaks.com/topic/248933-browser-resize-lock/#findComment-1280085 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.