Closed Bug 564250 Opened 14 years ago Closed 13 years ago

If the overflow is set in a style tag, You can't change it through Javascript.

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: mark, Unassigned)

References

()

Details

(Whiteboard: [CLOSEME 2011-1-30])

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)

On a page(Page 1), I have an iframe with a new page(Page 2) that contains a picture inside a Div. By default I set the overflow-x and overflow-y of the body tag on Page 2 to hidden. If the picture is larger than the iframe, I set the overflow-y to scroll. But it doesn't show the scrollbar. If I take out the overflow-y:hidden; from the body tag, it works fine. Worked in all previous FF, as well as IE, Safari, Chrome, Opera, etc..

Reproducible: Always

Steps to Reproduce:
1.Create a page with an iframe
2.In iframe, display a page that has the overflow-y set to hidden in the body tag and add content larger than iframe display
3.at the bottom of the page inside the iframe, set the overflow or overflowY to "scroll" using Javascript. The scrollbars do not show.
Actual Results:  
Showed same problem described above. I used steps to create the test site mentioned above.

Expected Results:  
setting the overflow-y or overflow in javascript should override the style tag and display the scrollbars
I've tested it in Firefox 3.6.3 on Windows 7 64 bit and on Mac OSX 10.5.?? on Firefox 3.6.3 with the same results.
Does this work in Fx 3.5? (if so, it's likely a duplicate of bug 550882)
URL works in 1.9.1 ans 1.9.3
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
FYI: This is fixed on trunk, but not (or not yet) landed on Gecko 1.9.2 branch (Firefox 3.6). Follow the other bug for progress.
Test case. simply resize window inside the red area, and no scroll bars will apear.
testcase 2 works here:  http://bwvd.de/xxx.html
but not here: attachment 450278 [details]
Interesting...
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles

You can also try to reproduce in Firefox 4 Beta 8 or later, there are many improvements in the new version, http://www.mozilla.com/en-US/firefox/all-beta.html
Whiteboard: [CLOSEME 2011-1-30]
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago13 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: