Closed
Bug 339075
Opened 18 years ago
Closed 18 years ago
xul's ephemeral messages are shown in wrong place
Categories
(Core Graveyard :: XForms, defect)
Core Graveyard
XForms
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: allan, Assigned: surkov)
References
()
Details
(Keywords: fixed1.8.0.8, fixed1.8.1.1)
Attachments
(4 files, 1 obsolete file)
If I use hints for f.x. inputs in XUL, funny things happen. Sometimes the window title shows up, and sometimes the control sizes changes?
| Reporter | ||
Comment 1•18 years ago
|
||
Try hovering over an input field. First the window title shows up, then the real hint, and sometimes the control itself changes size. Keeping the mouse hovering makes the control size change constantly
| Assignee | ||
Comment 2•18 years ago
|
||
(In reply to comment #1) > > Keeping the mouse hovering makes the control size change constantly > Size changing issue was been fixed by bug 345729. Now we get window title tooltip and wrong position of control tooltip. I can't get why window title tooltip is shown and who shows it?
(In reply to comment #2) > (In reply to comment #1) > > > > Keeping the mouse hovering makes the control size change constantly > > > > Size changing issue was been fixed by bug 345729. Now we get window title > tooltip and wrong position of control tooltip. I can't get why window title > tooltip is shown and who shows it? > If I remove the showPopup from xforms-ephemeral-message, the window title still pops up so has nothing to do with our ephemeral message. I'd suggest simplifying the testcase down by removing xforms from the document. Instead, put in the xul anonymous content for xforms:input directly into the xul document and see if you still get the title tooltip popping up. And if it still pops up, you know you need to talk to a XUL guy to see why and how to shut it off. That is how I'd go about it, at least.
| Assignee | ||
Comment 4•18 years ago
|
||
(In reply to comment #3) > If I remove the showPopup from xforms-ephemeral-message, the window title still > pops up so has nothing to do with our ephemeral message. I'd suggest > simplifying the testcase down by removing xforms from the document. Instead, > put in the xul anonymous content for xforms:input directly into the xul > document and see if you still get the title tooltip popping up. And if it > still pops up, you know you need to talk to a XUL guy to see why and how to > shut it off. That is how I'd go about it, at least. > I posted bug 348467 for additional tooltip issue.
| Assignee | ||
Comment 5•18 years ago
|
||
Attachment #233392 -
Flags: review?(Olli.Pettay)
| Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 6•18 years ago
|
||
The patch uses xul:tooltip element. It helps us to avoid additional styling.
Attachment #233392 -
Attachment is obsolete: true
Attachment #233436 -
Flags: review?(Olli.Pettay)
Attachment #233392 -
Flags: review?(Olli.Pettay)
Comment 7•18 years ago
|
||
Does the patch handle the case when xul element is scrolled?
| Assignee | ||
Comment 8•18 years ago
|
||
(In reply to comment #7) > Does the patch handle the case when xul element is scrolled? > So, if xtf part of message handles it then my patch it do also :) All I do it's just converting coordinates from message to screen coordinates. Though probably tooltip does some things. What behavior should be?
| Assignee | ||
Comment 9•18 years ago
|
||
(In reply to comment #7) > Does the patch handle the case when xul element is scrolled? > You're right. Sometimes something bougs happens. Though I can't imagine what's wrong and I can't see algoritm. Probably we can save scrolled box issue for bug 348469? At least not scrolled controls works more or less decently.
Comment 10•18 years ago
|
||
Do you perhaps have to check whether element is inside a scrollbox or something which has scrollbars and then convert the coordinates... I think there were some similar problems with select1. select1.xml#togglePopup does some hackish things to get/set the right coordinates.
| Assignee | ||
Comment 11•18 years ago
|
||
(In reply to comment #10) > Do you perhaps have to check whether element is inside a scrollbox or something > which has scrollbars and then convert the coordinates... > > I think there were some similar problems with select1. > select1.xml#togglePopup does some hackish things to get/set the right > coordinates. > So, that the way how nsIBoxObject::GetHeight() works. You can see the the same behaviour for xhtml too. Probably we should have separate bug for that since these are different issues. So, what do you think?
| Assignee | ||
Comment 12•18 years ago
|
||
I'd like the next: 1) rename this bug to "xul's empheral messages are shown in wrong place" 2) post new bug "wrong empheral message position for scrolled elements" 3) post new meta bug "empheral messages issues" that will handle two bugs mentioned above and bug 348467. So we'll get not exactly what Allan talked about but we'll save issues pointed by him in new meta bug. (Note, the meta bug will be wider than this one since some hint problems are represented in xhtml too). I like it too because this patch allows to keep simple uses of hints in xul and I can't guess right now when I'll get a time to fix the rest hint issues. Olli, does it work for you?
Comment 13•18 years ago
|
||
Comment on attachment 233436 [details] [diff] [review] patch2 Sounds ok to me.
Attachment #233436 -
Flags: review?(Olli.Pettay) → review+
| Assignee | ||
Updated•18 years ago
|
No longer depends on: 348467
Summary: Problems with hints in XUL → xul's ephemeral messages are shown in wrong place
| Assignee | ||
Updated•18 years ago
|
Attachment #233436 -
Flags: review?(aaronr)
Attachment #233436 -
Flags: review?(aaronr) → review+
| Assignee | ||
Comment 14•18 years ago
|
||
checked in by smaug for me :)
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: xf-to-branch
Comment 16•18 years ago
|
||
checked into 1.8 branch on 2006/11/21
Keywords: fixed1.8.1.1
Whiteboard: xf-to-branch
Attachment #234679 -
Attachment is patch: false
Attachment #234679 -
Attachment mime type: text/plain → application/xhtml+xml
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•