I have a header in my web application with a search icon. When the user clicks the icon, the search bar should expand from right to left.
The problem is that the animation works, but the expanded width is incorrect. I've built this type of expanding search bar many times before and never ran into this issue, so it's strange that I can't figure out what's causing it now.
I've already tried setting the constraints to Right + Top and Right + Bottom, but neither produces the expected behavior.
P.S.: It works well when I manually expand it in header component, it’s just the prototype where it just doesn’t work
Component set

Header

Prototype

