Hi everybody !
I have a dataGrid and inside that data grid I have a outputlink with title.
And I have a global tooltip outside the dataGrid.
When navigating in the datagrid, then the tooltip got damaged ?
Do I use the tooltip in a wrong way?
Thanks!
tooltip and dataGrid
-
- Posts: 7
- Joined: 08 Mar 2011, 16:24
I forgot to tell you that I am using primefaces-3.0.M2
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
So if you use 3.0.M3-snapshot with non-global tooltips, it should work. Note that global tooltips are not supported in M3.
-
- Posts: 7
- Joined: 08 Mar 2011, 16:24
Thanks for your reply.
Just wanted to tell that after some tests, that if the tooltip inside a position: relative; div then the position of the tooltip doesn't work properly
This code doesn't work properly (3.0.M3-snapshot):
<div style="position: relative; width: 950px; height: auto;margin: 0 auto;">
<h:outputText id="test" value="Tooltip test" title="This is the title"/>
<p:tooltip for="test"/>
</div>
But if you remove position: relative;, then it will work
Thanks!
Just wanted to tell that after some tests, that if the tooltip inside a position: relative; div then the position of the tooltip doesn't work properly
This code doesn't work properly (3.0.M3-snapshot):
<div style="position: relative; width: 950px; height: auto;margin: 0 auto;">
<h:outputText id="test" value="Tooltip test" title="This is the title"/>
<p:tooltip for="test"/>
</div>
But if you remove position: relative;, then it will work
Thanks!
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
It works for me well, tooltip is appended to body on the fly so the location on your page definition should not effect.