Closed Bug 104792 Opened 25 years ago Closed 25 years ago

Hebrew combo-boxes go haywire

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: mkaply)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files, 2 obsolete files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011011 BuildID: 2001101117 When moving the mouse inside a combo-box containing Hebrew, the bombo-box scrolls violantly to the bottom. Reproducible: Always Steps to Reproduce: 1.Go to the URL described above 2.Open the top combo box 3.Try to select the top movie 4.Try to repeat the process for the combo box at the bottom of the page (the one in English) Actual Results: The Hebrew box scrolls down every time the mouse is moved, however slightly, and in whatever direction. The English box behaves itself. Expected Results: Both boxes should behave themselves. The Hebrew box is defined with (truncated) <form NAME=f ACTION="movies/l_movies.asp" METHOD=POST> <font FACE="Globes" SIZE=2> <select NAME="f_movieId" ALIGN=middle onChange="go('movies/l_movies.asp','f_movieId',this[this.selectedIndex].value)" style="background:#ffff99;color:navy;font-weight:bold;width:200;direction:rtl;"><option VALUE="0">?/???</option> <option VALUE=604>?????? ??????</option> <option VALUE=420>????? ????</option> option VALUE = 537 > ????? ??? ?????? </ option > < The English box is defined with (truncated): < form NAME = f1 ACTION = "movies/l_movies.asp" METHOD = POST > > <font size="3" face="Arial"><b>Select Movie: </b></font> <font FACE="Arial,Times New Roman" SIZE=2> <select NAME="f_movieId" ALIGN=middle onChange="go('movies/l_movies.asp','f_movieId',this[this.selectedIndex].value)" style="background:#ffff99;color:navy;font-weight:bold;width:200;"><option VALUE="0">* Select Movie *</option> <option VALUE=537></option> <option VALUE=621></option> <option VALUE=438>102 Dalmatians (Hebrew)</option> option >A Knight?s Tale</ 606 = VALUE option < >
Attached patch suggested patch (obsolete) — — Splinter Review
This turns out to stem from an inaccuracy in the calculated width of an nsListControlFrame with direction=rtl, because the border width was getting added twice. The attached patch corrects that, and also removes an unreachable line which is probably the result of a cut-and-paste error.
Talking over this on IRC it emerged that there are some other problems in this code block, and just omitting that unreachable line is not enough to fix them. I'll open a new bug for those problems. Meanwhile, here is a new patch that just fixes the problem reported in this bug.
Attached patch new patch (obsolete) — — Splinter Review
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: patch
Attachment #53580 - Attachment is obsolete: true
fwiw the split off bug is bug 104874.
looks right, r=rods
Attachment #53590 - Flags: superreview+
Comment on attachment 53590 [details] [diff] [review] new patch sr=attinasi
Fix checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Reopening because the checkin to bug 104874 killed this checkin.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached file minimal testcase —
Attaching testcase that I pulled off the URL when the bug was filed. (It's lucky that I did so because the site has totally changed since then, and now has a whole new problem which the patch will not fix. I'll be investigating that and will either work on it in here or open a new bug)
Attachment #53590 - Attachment is obsolete: true
Attachment #57150 - Attachment is obsolete: true
Attachment #57150 - Attachment is obsolete: false
fix checked in again
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Blocks: 137995
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: