How do you determine the current height of Multiline cell (or row)? I am looking to reposition a calendar so the top aligns with the bottom of Multiline cell. Since I have varying cell or row heights I am trying to determine the height.
Thank you.
How do you determine the current height of Multiline cell (or row)? I am looking to reposition a calendar so the top aligns with the bottom of Multiline cell. Since I have varying cell or row heights I am trying to determine the height.
Thank you.
Found it what I was looking for using:
this.cell.offsetHeight
Here is my code to make sure the calendar shows correctly within the current window (excerpts taken from other pages on this forum):
mygrid.attachEvent(“onCalendarShow”, function(myCal,rId,colInd){
var cell = this.editor.cell;
var arPos = this.getPosition(cell);
myCal.hideTime();
if(arPos[1] + myCal.base.offsetHeight + this.cell.offsetHeight < window.innerHeight) {
yPosition = arPos[1]+this.cell.offsetHeight+6;
if(this.cell.offsetHeight<21){ yPosition = yPosition + 19;}
} else {
yPosition = arPos[1]-(myCal.base.offsetHeight);
}
myCal.setPosition(arPos[0]-190,yPosition)
})
Hope this helps someone else.