Typically we do not define visual elements that draw outside of parent. So the icon could have been defined outside of text field and the anchored to textfield. I don't think there is any actual downside with the current implementation so we can leave it like this.