Reviewed-by: darcy, weijun
Consider gap between the component edge and container borders instead of just getX() and getY() Reviewed-by: dav