[haiku-development] Re: Zoom sucks and what to do about it

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 1 Feb 2015 10:33:51 +0100

On Sat, Jan 31, 2015 at 07:55:10PM +0100, Axel Dörfler wrote:
> >For example WebPositive could zoom to fit the contents of the webpage.
> 
> Not really; many web sites don't have any idea about their size
> requirements, so this is just not possible.
> For WebPositive, I think switching to full screen is completely okay (and
> even what I would expect).

Some websites use a fixed-width design, and there are now CSS selectors
to change the style depending on the screen size. In theory it would be
possible to detect that these are used and use the given sizes to adjust
the window to the content.

I personally find that "flexible" designed website, which extend to the
whole window width, are rather unreadable as you get very wide lines of
text. "modern" websites now use a huge font size to avoid this.

In any case, Web+ already has a separate fullscreen option (on the F11
key), which I find more useful than the maximize behavior.

> [...]
> >position and do the right thing. It does create a reliance on BDeskbar
> >though and probably shouldn't be the default action in BWindow.

This should be implemented so that the "avoidance" feature can be used
with things other than the Deskbar. If I remember correctly, Windows has
a system-wide setting - I think in the registry - or the maximized
window bounds. By default it is set according to the taskbar size (if it
is set to always on top), but it can be modified to also exclude other
areas of the desktop. For example apps such as Launchbox or other
launchers could request that their windows are also excluded from the
maximized size.

-- 
Adrien.

Other related posts: