W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] Modal dialogs in HTML5

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 18 Dec 2008 18:34:51 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0812181833550.30197@hixie.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 18 December 2008 10:34:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:08 UTC