textarea overlaps existing elements after resizing with JS

RESOLVED WORKSFORME

Status

()

Core
Layout: Tables
RESOLVED WORKSFORME
14 years ago
14 years ago

People

(Reporter: robzilla, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows XP
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707

When I resize a textarea which is in a table by clicking on an image in the
adjacent cell, and my resize function changes the "alt" attribute of the image;
the enlarged textarea will overlap any existing elements below it.

This seems to depend on whether I change the rows attribute of the textarea
before or after changing the alt attribute of the image.  Attachment to follow.

Note: this may be related to bug 158296, but I'm not sure

Reproducible: Always
Steps to Reproduce:
1. Load the attachment
2 [review]. Click on the image next to "Bad" - the textarea will enlarge, but will
overlap the text input below it. Click again to restore.
3. CLick on the image next to "Good" - everything works fine.

Actual Results:  
The difference is in my resize function - if I change the rows attribute of the
textarea before I the "alt" attribute of the image, it breaks.  However, if I do
it in the reverse order, it works fine.  See the contents of the first if
statement in the "toggleDescSize_bad" and "toggleDescSize_good" functions.

Expected Results:  
either case should work.
(Reporter)

Comment 1

14 years ago
Created attachment 154575 [details]
test case used for replication

Updated

14 years ago
Keywords: testcase

Comment 2

14 years ago
Rob the rendering is identical for me whether I press the good or bad button.
Could you test it with a recent nightly? 
(Reporter)

Comment 3

14 years ago
Ok, the problem doesn't appear in Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8b) Gecko/20050118 Firefox/1.0+
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.