Closed Bug 92464 Opened 24 years ago Closed 23 years ago

WRMB: Caret appears outside of text field

Categories

(Core :: DOM: Editor, defect, P1)

defect

Tracking

()

VERIFIED DUPLICATE of bug 55086
mozilla0.9.4

People

(Reporter: the_great_spam_bin, Assigned: karnaze)

References

()

Details

(Keywords: topembed)

Attachments

(6 files)

When single-line text fields receive focus, the caret sometimes appears partially or completely outside of the text frame (sometimes way outside). In other words, the text field and the caret are not in the same place. But, as soon as any text is entered, the caret and the frame snap into their correct positions (sometimes altering the layout of the page). Sometimes a misplaced text frame can be covered by other form elements until the user enters text. Once the user enters text, the layout changes so that the field is no longer covered. A minor example is the search field at the top of the PA site next to the "Pa PowerSearch" image
What build are you using? Do you have reproducable steps for this?
Attached file A (minimal?) test case
I know it happens with Mozilla 0.9.2. I do not know exactly what steps it takes to reproduce this problem. All I know is that in my test case, the form must be enclosed in two tables, the outer of the two tables must be aligned center or right, and the tag "<non-standard tag>" (it can be named anything) must be present in order for the bug to be visible. Since this specific setup is not present on the PA page, my test case does not encompass all possible causes.
--> editor
Assignee: trudelle → beppe
Component: XP Toolkit/Widgets → Editor
QA Contact: aegis → sujay
I can see the caret outside the textfield, on win2k with the current .9.2.1 branch build. Confirming. (I've also seen this happen when content is inserted by JS, forcing a table further down the page, but leaving the logical location of textfields in that table at their original location).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Confirmed it on Mac OS X.
OS: Windows 2000 → All
Hardware: PC → All
off to mike
Assignee: beppe → mjudge
Priority: -- → P2
Target Milestone: --- → mozilla0.9.4
Keywords: topembed
Summary: Caret appears outside of text field → WRMB: Caret appears outside of text field
reassigning to karnaze -- this is a table reflow problem
Assignee: mjudge → karnaze
Target Milestone: mozilla0.9.4 → ---
FYI, if you try to pull some of these test cases locally, along with any images on the page, you'll notice that you might not see the problem. Apparently loading of images over the net introduces enough of a lag (timing difference) that allows the reflow problems.
Rod, please take a look. It could be a view and/or block problem, but it doesn't sound like a table problem.
Assignee: karnaze → rods
Works for me ok with today's build.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
The bug is no longer evident in my test case attachments and in state.pa.us with the 8/16/01 Win32 trunk build. But it remains in: http://twig.screwdriver.net/demo/ http://cvs.gnome.org/lxr/ reopening...
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Tested on the following:
Again....
Tested on the following: 1) Built a debug build (8/16). Tested 'twig' page with Viewer - no problem. Tested 'twig' page with 'mfcembed' - I can reproduce the problem; however, when I resize the page, the problem corrects itself. 2) Downloaded the 8_16_10_trunk Netscape6.1 build. Tested 'twig' page in the browser - I can reproduce the problem. Agree with reopen.
using commercial build from 2001081703 (from sweetlou) this problem still exists. As Kin noted it is an issues with timing and reflow. The twig link is an excellent example. I am setting this to 9.4, setting this to P1/Critical. This has been marked as WRMB.
Severity: major → critical
Priority: P2 → P1
Target Milestone: --- → mozilla0.9.4
Another example that has the bug under 0.9.3: http://www.microsoft.com/windows/ie/ (the left side bar search field)
erci, apparently this is a box layout issue, talk to kin if you need more info. Thanks, Rod
Assignee: rods → evaughan
Status: REOPENED → NEW
taking a look.
Status: NEW → ASSIGNED
I believe this is a table bug. If the text field is in a table this happens. If it is outside it does not. Attached are 2 testcases. The first shows the problem. Shift-reload and you can see it everytime. The second one fixes the problem by placing the textfield outside the table.
Although I am not familiar with the code, it seems to me that if this were only a table bug, the whole text field might be in wrong place, but not just the contents and the caret. I would think that the text field would encapsulate all of its visible components (such as the frame and the editor) and position them relative to itself so that none of them could move without it. In other words, I think that if the text fieled itself were working properly, it should be impossible for the frame and the content to be in different places no matter what is going on with the rest of the layout. (Please correct me if I don't know what I'm taliking about.)
adding karnaze
>I would think that the text field would encapsulate all >of its visible components (such as the frame and the editor) and position them > relative to itself so that none of them could move without it. Unfortunately this is not true. If we only had frames this might be the case but we also have views. You can move the frames but if your children have a view and the parent view is somewhere out side the textfield (Which it is). Then moving only the frames and not the view will make this happen. Which I believe to be the problem. But tracking down exacly where its happening is the really difficult problem because this is due to content incrementally comming in. You see the at first comes the image comes in with a size of 0,0. And a reflow causes the textfield to be places properly. Then the images size pops in later. The textfields frames are repositioned but their views are not moved. You can also see this behavior without a text field. Put a div with overflow scroll in the table cell and try it. The scrollbars will be in the wrong place.
Sorry guys. Its a table bug. The following attachment reproduces it with out scrollbars or a text field. Load the following attachment and hit shift-reload.
table bug
Assignee: evaughan → karnaze
Status: ASSIGNED → NEW
*** This bug has been marked as a duplicate of 55086 ***
Status: NEW → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: