Closed
Bug 228156
Opened 21 years ago
Closed 21 years ago
RTL textareas containing text originated in HTML code are misaligned [Regression]
Categories
(Core :: Layout: Text and Fonts, defect, P1)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla1.6final
People
(Reporter: bugzillamozilla, Assigned: dbaron)
References
()
Details
(Keywords: fixed1.6, regression, rtl, Whiteboard: [patch])
Attachments
(3 files, 1 obsolete file)
14.55 KB,
image/png
|
Details | |
1.04 KB,
text/html
|
Details | |
6.37 KB,
patch
|
roc
:
review+
bzbarsky
:
superreview+
chofmann
:
approval1.6+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 This is a serious regression that prevents previewing RTL messages in forums and webmail. Reproducible: Always Steps to Reproduce: Open http://bugzilla.mozilla.org/attachment.cgi?id=134102&action=view or any other page with an RTL textarea that already includes text. Actual Results: The contained text does not align to the rightmost side of the textarea, but rather starts at the middle (as if it was indented). Expected Results: Text should be right-aligned. Prog.
Reporter | ||
Comment 1•21 years ago
|
||
Shosh, can you reproduce (and confirm) this on other platforms? Prog.
Reporter | ||
Comment 2•21 years ago
|
||
This bug also happens with Mozilla and Firebird under Linux. More details here: http://mozillazine.org/talkback.html?article=4068#41 Prog.
OS: Windows XP → All
Comment 3•21 years ago
|
||
i didn't check this myself yet, but if true, this is a major problem for RTL locales.
Flags: blocking1.6?
Comment 4•21 years ago
|
||
what i see is that the page is loaded with only two "words" visible, aligned to the left, and then, when i move the caret, they align to the right normaly. i'm using a nightly from last week: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208
Updated•21 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•21 years ago
|
||
Yes, I am seeing this with Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6b) Gecko/20031129 Firebird/0.7+
Updated•21 years ago
|
Hardware: PC → All
Comment 6•21 years ago
|
||
Seeing this with build 2003-12-03-08 on WinXP. Could with what may be another bug but may also be the same problem - the bungled-up editing of such text (lines not selected properly, illogical cursor movement) - this makes not only the previewing but the entire experience of using Hebrew webmail, webforums etc. rather unpleasent.
Comment 7•21 years ago
|
||
illogical corsor (caret) movement is at bug 207186.
Comment 8•21 years ago
|
||
This was caused by: http://bugzilla.mozilla.org/show_bug.cgi?id=217201 Since we know what caused this I'm going to mark this blocking hoping we can get someone to look at it.
Flags: blocking1.6? → blocking1.6+
Reporter | ||
Comment 9•21 years ago
|
||
CCing Robert O'Callahan, as he is more familiar with the patch that introduced this regression (in Bug 217201). Prog.
Assignee | ||
Comment 10•21 years ago
|
||
This seems to be a view synchronization problem: frames: ScrollPortFrame(div)(-1)@0x91a7354 [view=0x91a7518] next=0x91ae068 {0,0,4392,1872} [state=00c46004] [content=0x91a9b60] [sc=0x91aec1c]< Area(div)(-1)@0x91a7260 [view=0x91a75e0] {0,0,4392,1872} [state=00d06014] sc=0x91aec90(i=2,b=0)< views: 0x91a7518 {2808,132,4392,1872} z=0 vis=1 opc=1.000 tran=1 clientData=0x91a7354 < 0x91a75e0 {-2352,0,4392,1872} z=0 vis=1 opc=1.000 tran=1 clientData=0x91a7260 < > >
Reporter | ||
Comment 11•21 years ago
|
||
Textarea on top is Mozilla 1.6 (20040108) - text is misaligned and much of it is hidden. Textarea below is 1.5 - text is properly right-aligned. Prog.
Reporter | ||
Comment 12•21 years ago
|
||
This is the same testcase that appears in the screenshot. Prog.
Assignee | ||
Comment 13•21 years ago
|
||
The offset seems to be the size of the wrapped line of text -- as though the text were displayed un-wrapped and then wrapped without repositioning its left edge.
Assignee | ||
Comment 14•21 years ago
|
||
Sprinkling nsContainerFrame::PositionChildViews calls in a few places didn't seem to help...
Assignee | ||
Comment 15•21 years ago
|
||
Of course, that's unlikely to help with a scrolling view. I think the real problem is that we're resizing the nsScrollBoxFrame, and it doesn't know that the idea of keeping in position means keeping the right edge of its contents in position rather than the left edge.
Reporter | ||
Comment 16•21 years ago
|
||
> Sprinkling nsContainerFrame::PositionChildViews calls in a few places didn't
> seem to help...
Try whatever Ctrl+Home calls. It resets alignment to the proper offset.
Prog.
Assignee | ||
Comment 17•21 years ago
|
||
This patch works. However, it deletes something which is then accessed shortly afterwards. I'll need to figure out how to avoid that.
Assignee | ||
Comment 18•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #138674 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #138675 -
Flags: superreview?(bz-vacation)
Attachment #138675 -
Flags: review?(roc)
Assignee | ||
Comment 19•21 years ago
|
||
I'm not sure if this is really something I'd want to put in 1.6 at this point, but...
Assignee: mkaply → dbaron
Priority: -- → P1
Whiteboard: [patch]
Target Milestone: --- → mozilla1.6final
Comment on attachment 138675 [details] [diff] [review] patch Yoiks. Well, I guess it makes sense.
Attachment #138675 -
Flags: review?(roc) → review+
Updated•21 years ago
|
Keywords: regression
Comment 21•21 years ago
|
||
Comment on attachment 138675 [details] [diff] [review] patch sr=bzbarsky. This is a lot less scary than it seemed at first glance... ;)
Attachment #138675 -
Flags: superreview?(bz-vacation) → superreview+
Assignee | ||
Comment 22•21 years ago
|
||
Fix checked in to trunk, 2004-01-10 11:12 -0800.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 23•21 years ago
|
||
Comment on attachment 138675 [details] [diff] [review] patch Requesting 1.6 approval, although it might be a good idea for this to bake on the trunk for a few days.
Attachment #138675 -
Flags: approval1.6?
Reporter | ||
Comment 24•21 years ago
|
||
I created a 1.6 branch build with this patch applied, and it works very well. I don't see any difference with the way textareas behave with this build compared to 1.5, and I even got to test all the caret issues from Bug 207186. If anyone wants to test this build, you can download it from the following URL: http://oren.gomen.org/mozilla/downloads/1.6/mozilla16_20040110.exe Note that my bandwidth is limited, but I'll probably mirror this file in a few hours, so that more users can test it. Prog.
Comment 25•21 years ago
|
||
Comment on attachment 138675 [details] [diff] [review] patch a=chofmann for 1.6. we need to get this checked in by monday morning to make the 1.6 final candidate builds
Attachment #138675 -
Flags: approval1.6? → approval1.6+
Comment 26•21 years ago
|
||
Comment on attachment 138675 [details] [diff] [review] patch a=chofmann for 1.6
Assignee | ||
Comment 27•21 years ago
|
||
Fix checked in to MOZILLA_1_6_BRANCH, 2004-01-11 09:47 -0800.
Keywords: fixed1.6
Comment 28•16 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
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.
Description
•