Closed Bug 299693 Opened 19 years ago Closed 19 years ago

Open 2nd tab does not trigger onResize event

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jab_creations, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050525 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Winblows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050525 Firefox/1.0+

When I go to my site and add a second tab my site does not reload on the
OnResize event.  This is not when the browser resizes by the user in the sense
of resizing the full window but that when the browser area changes due to tabs
now reducing the available vertical-client height.

http://www.jabcreations.com/scripts/script-resize.js

Now that it crosses my mind can I assume that OnResize should also be occupanied
by something that detects a change in document.body.clientHeight in order to
support tabbed browsers or should OnReize be made to include the condition of
change space on account of tabs?

Reproducible: Always

Steps to Reproduce:
1. Go to a page with a script (such as mine) that reloads the page if the window
is resized.
2.  Open a 2nd tab.
3. Go back to the first tab and see how the bottom frame is now mostly covered.

Actual Results:  
Bottom frame covered by reduced space due to tabs being added.

Expected Results:  
Either OnResize should be made to accomadate this or I'm sure someone else may
have a fine suggestion?

I have not attempted to try to detect changes in the document.body.clientHeight
in order to reload the page so I don't know if there is a work around.
Dupe of 280777?
wfm here with the example from
http://www.simonstl.com/dynhtml/update/code/chap5/onresize.html on current trunk
and FF 1.0.4. Can you test if this site works with your build?
20050708 build works
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.