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)

defect
Not set
normal

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?
Attached file Testcase
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
Depends on: 345729
(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.
(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.
Attached patch patch (obsolete) — Splinter Review
Attachment #233392 - Flags: review?(Olli.Pettay)
Status: NEW → ASSIGNED
Attached patch patch2Splinter Review
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)
Does the patch handle the case when xul element is scrolled?
(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?
Attached file testcase2
(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.
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.
Attached file xhtml testcase
(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?
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 on attachment 233436 [details] [diff] [review]
patch2

Sounds ok to me.
Attachment #233436 - Flags: review?(Olli.Pettay) → review+
Blocks: 349667
No longer depends on: 348467
Summary: Problems with hints in XUL → xul's ephemeral messages are shown in wrong place
Attachment #233436 - Flags: review?(aaronr)
Attachment #233436 - Flags: review?(aaronr) → review+
checked in by smaug for me :)
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: xf-to-branch
checked into 1.8.0 branch on 2006/09/21
Keywords: fixed1.8.0.8
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
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: