Skip to main content
Solved

"Fix Position When Scrolling" not working as part of a component instance


Show first post
This topic has been closed for comments

49 replies

Mel5
  • 1 reply
  • October 9, 2021

Double check your constraints are set to the bottom. It fixed it for me.Screen Shot 2021-10-09 at 13.29.44


Alexander_Chamas

You’re my hero - thank you!


Amar
  • 2 replies
  • February 21, 2022

@Mel5 Your fix worked! Thank you so much!


Siddharth_Mishra

Detaching Instance from the parent component worked for me.


Nicholas_Lavis

🤦‍♂️ You LEGEND!


Mario9
  • 2 replies
  • March 14, 2022

When an interactive component doesen’t works or has bugs try to put it inside another frame and make it fixed, the component will work perfectly as fixed element.


Sara_Croop

This was the fix that worked for me!


Andreea
  • 2 replies
  • March 30, 2022

Re: trying to set “fix position when scrolling” for component instances – also make sure that your component instance is not grouped together with any other objects that are scrollable (this will cause fixed scrolling to break). Keep all the objects you want fixed ungrouped (or in a separate group) from anything else in the frame, and this solved the issue for me (the “fix position when scrolling” option is available for all component instances, and prototype behaviour works as expected). Hope this helps someone! 🙂


Mikhail_St-Denis

⭐ You’re a hero.


Adijat_Ajoke_Sulaimon

Thank you so much Mr genius. Works like magic


Armin_Seltz

Just came across this as I need to do the same. From what I read if you want a static header it has to be outside the Auto-layout, right?

But if I cannot set Auto-layout on the outermost frame, how do I set the frame to auto-resize? If I set the outermost frame (or “artboard”) to auto-layout and vertical sizing to “hug”, it will resize to contain all elements. If for example I have a lot of accordions, I need the page to resize, so that I can scroll correctly in the prototype.

So my question: How can I have an auto-resizing outer frame with a static menu on top?


tank666
  • 4856 replies
  • September 10, 2022

Apply absolute positioning to the object and then adjust the constraints and the “Fix position when scrolling” setting.


Armin_Seltz

Okay, wow, it took me a while to find it and I have been using Figma for ages. For anyone else, it’s here:

image

Also you will have to set basically a top margin for everything below your menu, which you can do here:

image

Thanks @tank666


Xand3rPz
  • 4 replies
  • October 19, 2022

It did for me. Selecting Left and Bottom in the constraints, as suggested in above comments, only served to dislocate my vertical navi bar to the right while also not fixing the scrollability issue. The real problem was that the navi bar in the varient frame was grouped in with several other assets which denied the “fix to position when scrolling” from even being clickable.


Vidya
  • 1 reply
  • January 31, 2023

In order to see the “Fix Position When Scrolling” for particular element, say A, A should not be in any group, means A should be directly under the main frame.


Alex_Lazar

Why does this persist even now?

I have a simple frame that acts as a bottom navbar on mobile.
Constraints: Left and Bottom. Fixed while scrolling: checked. Screen overflow scrolling: Vertical scrolling.

At one point it was visible. I pulled it out of the screen, changed the styling, added constraints, and everything, but not working. It’s weird and doesn’t make sense to me.

Does anyone have a new fix for this?


Alex_Lazar

Okay so one thing that fixed it for me was to align the navigation bar to the bottom of the page, not place it at the end of the screen size.

Contrary to what I used to do and how other suggested it, but it’s what worked for now.


  • 1 reply
  • February 4, 2023

Just in case someone has the same problem. In my case the “fix position” didn’t appear because I had several frames of equal size overlayed, and as soon as I deleted a spare one - the option appeared. I don’t know why I create extra frames lol. To delete a spare frame - command shift G


Hey @Macky_Tanaka, thanks a bunch! It totally worked.


  • 2 replies
  • March 26, 2023

OMG I found a solution. It was really easy. Just “frame selection” your component and it’s fixed. XD Hope you guys doing well


Yaman
  • 1 reply
  • October 12, 2023

I had the same issue with the bottom navigation bar and solved it by setting the constraints to the bottom.


Thanks, this solved my problem which was a silly one… was working on Android larger and the “proceed to pay” button spilled downward beyond 800 so yaa…thnx again


when I try to fix the navbar i cannot fix it
Screenshot 2024-01-30 122449


Yean_Supichaya

Hi, Alfred_Rufus. I have this problem too. I fix it by setting the frame’s scroll behavior first (setting the overflow to vertical, horizontal, or whatever you wish), and then it will allow you to set the layer’s scroll behavior to Fixed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings