src/main/java/org/fit/layout/impl/AreaGrid.java
public int findCellX(int x)
    {
    	int ofs = abspos.getX1();
    	for (int i = 0; i < cols.length; i++)
    	{
    		ofs += cols[i];
    		if (x < ofs)
    			return i;
    	}
    	return -1;
    }
public int findCellX(int x)
    {
    	int ofs = abspos.getX1();
    	for (int i = 0; i < cols.length; i++)
    	{
    		ofs += cols[i];
    		if (x < ofs)
    			return i;
    	}
    	return -1;
    }
Finds a grid cell that contains the specified point
@param x the x coordinate of the specified point
@return the X offset of the grid cell that contains the specified absolute
x coordinate or -1 when there is no such cell