This question is locked. New answers and comments are not allowed.
Hi,
I am using the Grid and I am stuck on something.
See enclosed pictures.
The point is, when I click on a button in my grid it comes up with a popup (see popup good).
As long as I dont use the vertical scrolbar it sets itself at the correct position.
When I use the vertical scrolbar the popup appears in at the wrong place. The more I scroll the worse it get (see bad popup).
Under a piece of code how i position the popup.
I hope there is someone who can get me a push in the right direction
Regards,
Gerard
I am using the Grid and I am stuck on something.
See enclosed pictures.
The point is, when I click on a button in my grid it comes up with a popup (see popup good).
As long as I dont use the vertical scrolbar it sets itself at the correct position.
When I use the vertical scrolbar the popup appears in at the wrong place. The more I scroll the worse it get (see bad popup).
Under a piece of code how i position the popup.
$("#popupkoopbox").css({ 'left': leftVal, 'top': topVal, 'position': 'relative', 'display': 'block' });var leftVal = offset[0] - 180 + "px"; var topVal = offset[1] - 230 + "px";function getPosition(obj) { var topValue = 0, leftValue = 0; var finalvalue = new Array(); var gridcontentheight = $('.t-grid-content').height(); while (obj) { leftValue += obj.offsetLeft; topValue += obj.offsetTop; obj = obj.offsetParent; } finalvalue[0] = leftValue; finalvalue[1] = topValue; return finalvalue; }I hope there is someone who can get me a push in the right direction
Regards,
Gerard