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