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. Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/248933-browser-resize-lock/#findComment-1280085 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.