[whatwg] Modal dialogs in HTML5
ian at hixie.ch
Thu Dec 18 10:34:51 PST 2008
On Thu, 18 Dec 2008, Philipp Serafin wrote:
> There is no reasoneable "default size" the page could adjust to. If the
> author can't specify the size of a popup/dialog, what algorithm should
> the UA use to find out the correct optimal size?
Lay out the page at infinite height and width, then shrink the width until
you get to the narrowest width that doesn't cause any overflow or line
wrapping, then shrink the height until you get to the shortest height that
doesn't cause overflow, then center it over the originating window.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg