[haiku-commits] Re: haiku: hrev44431 - src/apps/webpositive

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 29 Jul 2012 22:19:42 -0400

On Sun, Jul 29, 2012 at 9:29 PM, Clemens <clemens.zeidler@xxxxxxxxxxxxxx> wrote:
>
> cool, whats about the idea to give the window an optimal width?, i.e. the
> width of a web page, like tracker zooms to the best size to display all
> files.

It is not hard to manually resize a browser window to get it big
enough to display a web page without horizontal scrollbars. It is
quite hard to manually maximize a window. So I think that is the best
default behavior for most people. Or to really fix this and similar
issues Haiku needs to add a maximize button to the window decorator,
and then zoom can do what you suggest.

But either way in multi-tab browsers sizing to content does not make
as much sense. Though the simplest solution would obviously be to just
size the window to the currently shown tab. But if you change tabs and
then want to size the window to that tab, you have to unzoom and zoom
again. Or if you even clicked a link and then the next page needed
another "ideal" size you need to do the same. The content is not
nearly as static as a Tracker window.

>> src/apps/webpositive/.BrowserWindow.h.swp |  Bin 0 -> 20480 bytes

Oops, I'll whack that in my next push. Stupid VIM swap files. I'll
also add these to .gitignore.

-- 
Regards,
Ryan

Other related posts: