Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Christian on Jun 18, 2009 07:26
open dhtmlx forum
Top and left position of a cell in dhtmlxLayout

How to get top and left position of a cell in dhtmlxLayout
Answer posted by Alex (support) on Jun 18, 2009 08:09

Hello, 

 layout doesn't provide a public solution to do that 

 There is cells(itemId) which returns html element. So, you can use your approach to get its position. 

You can try to use the following approach (but we aren't sure that it will work for your application - this approach isn't supported):

var left = getAbsoluteLeft(dhxLayout.cells(itemId));

var top = getAbsoluteTop(dhxLayout.cells(itemId));

 

Answer posted on Aug 10, 2009 12:03

There is something similar for the top and left position  of a tab in a tabbar