X and Y should be relative to the parent