Merge "Fix wrong dock stack bounds after rotation."