taking into account the padding from the parent TilePane