Closed Bug 360878 Opened 18 years ago Closed 18 years ago

"De-zooming" continually expands window rather than returning to previous size on some pages

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: alqahira, Assigned: torben)

References

()

Details

(Keywords: fixed1.8.1.1)

Attachments

(1 obsolete file)

STR: 

1. Visit http://hidenosuke.org/
2. Zoom (page expands by about 1/4"
3. Zoom again

Expected: Window shrinks by ca. 1/4" back to original size

Actual: Window continues to expand by about 1/4" with each press of "zoom"

Switching tabs between steps 2 and 3 causes us to properly de-zoom.  Not sure how common sites with this issue will be.  Targeting to 1.1 for now.
about:mozilla, about:about, and about:cache illustrate this, too.
On my trunk build/10.4.8, nothing happens for those pages.
My window size is about 1100px by 700px, zoom does not expand nor shrink the window, which is what I would expect.

(and that is much better than Safari, which shrinks the window, and sends it in the bottom left corner of the screen).
All of these work for me too, both on branch and trunk (latest nightlies). Smokey, what is your window and screen size?
My window is 906x874 (somewhere around 900px wide at any given time, given bug 350331), and my screen is 1400x900 (the other vertical pixels are all the menubar).
I see the same behaviour as Smokey (on a Macbook screen).
I found a way to reproduce this, the problem is that we add space for a vertical scrollbar (due the padding we do to guard against rounding errors) even though it will not be shown. Now I just have to figure out how to fix this...
Assignee: nobody → torben
This moves the adding of 1 extra pixel to BWC and only adds it when the resulting height/width is less than the screen's.
Attachment #247991 - Flags: review?(hwaara)
Comment on attachment 247991 [details] [diff] [review]
Only add padding when the window's height is lees than the screen's height

I'm sorry, I won't have time for this...
Attachment #247991 - Flags: review?(hwaara) → review?
Since a2 will be the first time we ship with zoom, it'd be nice to get some of these zoom bugs fixed instead of shipping a partially busted impl.  


(The patch works nicely in the cases I've tried, btw.  Pages like these that really shouldn't expand at all no longer do....)
Flags: camino1.1a2?
Comment on attachment 247991 [details] [diff] [review]
Only add padding when the window's height is lees than the screen's height

Stuart, can you take a look at this?
Attachment #247991 - Flags: review? → review?(stuart.morgan)
Comment on attachment 247991 [details] [diff] [review]
Only add padding when the window's height is lees than the screen's height

r=me
Attachment #247991 - Flags: superreview?(mikepinkerton)
Attachment #247991 - Flags: review?(stuart.morgan)
Attachment #247991 - Flags: review+
Comment on attachment 247991 [details] [diff] [review]
Only add padding when the window's height is lees than the screen's height

This is included in the patch in bug 361049.
Attachment #247991 - Attachment is obsolete: true
Attachment #247991 - Flags: superreview?(mikepinkerton)
Fixed by bug 361049.
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1.1
Resolution: --- → FIXED
Flags: camino1.1a2? → camino1.1a2+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: