jQWidgets Forums

jQuery UI Widgets Forums Grid Position of tooltips in grids when using Chrome Reply To: Position of tooltips in grids when using Chrome


michaelstegner
Participant

Hello,

I Think if found the source of the issue. In jqxtooltip.js you are using document.documentElement.scrollTop to calculate the Tooltips position. The value is always 0 in Chrome.

So to fixed the problem I replaced

this.documentTop = document.documentElement.scrollTop,

whit

this.documentTop = (document.documentElement.scrollTop > 0 ? document.documentElement.scrollTop : (document.body.scrollTop > 0 ? document.body.scrollTop : window.pageYOffset ) ),

I’m not sure if this is the best solution but the tooltips are no longer in the wrong position.
I hope this will help you.