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
Post a Comment