Skip to main content
Question

Issue with expanding search bar in Header

  • August 2, 2026
  • 1 reply
  • 6 views

Mustafa Wahab

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

 

1 reply

adamsmasher
Figmate
  • Figmate
  • August 2, 2026

Hi, ​@Mustafa Wahab! Thanks for your post - I imagine this is pretty confusing since you’ve made this type of interaction before.

 

Do you think you could get screenshots of the properties panel for both the search bar component that expands (both states) and the parent layer? It might be helpful to see that. Since you’ve created this interaction before, have you tried comparing this component with one that you know to be working? The experience should be consistent between Design and Prototyping, but comparing to a working example might help you find what is different and results in what your screenshot shows.