javascript - Jquery model popup maximize mode issue -


i want open jquery dialog in maximized mode.
when set width & height properties of model window goes out of inner window & shows horizontal scollbar. what's wrong in code

 $("#popupwin").dialog({ width: $(document).width(),                           height: $(document).height(),                           resizable: false }); 

i guess may want use $(window)?

from jquery documentation:

$(window).height();   // returns height of browser viewport $(document).height(); // returns height of html document 

basically, html document can go way longer actual window viewport doesn't make sense use $(document) @ case.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -