You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Andrew Robinson <an...@gmail.com> on 2006/10/13 17:11:57 UTC
IE bug that affects t:popup
FYI:
I have written my own t:popup for use by my company that has more
functionality that t:popup and is customized for our use.
While I was using this I found a location in my code where the popup
didn't open where it was supposed to. After some research I found that
IE has a nice bug with the calculation of offsetTop with a TABLE
element.
My method:
1) calculate the DIV's X & Y co-ordinates on the screen
2) move the DIV to the document.body
3) re-position the DIV to the original X & Y co-ordinates
The reason I do this is so that if the popup is in a child element, it
won't be restricted to the parent. Once it is a direct child of the
BODY, it is able to be seen anywhere on the page.
What I have found is that IE incorrectly adds the offsetTop of the
TD/TH to the calculation of the offsetTop of its children (the problem
is that it isn't always broken, some times -- and I can't figure out
when -- the offsetTop in a TABLE somehow works). Resulting in an
almost double value of the offsetTop property.
I have opened a case with Microsoft to get a work around for this.
There is a patch for the bug:
http://support.microsoft.com/kb/811808
There is no work around (that is what the case is for).
I am not sure if this would affect t:popup or not (or other Tomahawk
controls). I will post the results and any JavaScript that would apply
if people are interested if Microsoft ever gets back to me with a good
solution.
-Andrew
Re: IE bug that affects t:popup
Posted by Werner Punz <we...@gmx.at>.
Andrew Robinson schrieb:
>
> http://support.microsoft.com/kb/811808
>
> There is no work around (that is what the case is for).
>
> I am not sure if this would affect t:popup or not (or other Tomahawk
> controls). I will post the results and any JavaScript that would apply
> if people are interested if Microsoft ever gets back to me with a good
> solution.
>
Thanks for the info, yes I would be interested in the results
I assume the tomahawk popup is affected as well as the date pickers
the sandbox stuff maybe not, because they already use dojo positioning
code.
Anyway a deeper investigation into the problem is not that urgent
as it used to be a year ago.
Microsoft will push ie7 as downloadable update this month and in the mid
of november it will be an update (not an enforced one, but it will be an
update) for all others.
So the usual game starts anew. Microsoft has not fixed too many issues
in this release, but some png related and positional related code.
What you will probably get from Microsoft as answer is to wait for the
official ie7 release which is imminent.