Skip to main content
Solved

How to achieve fixed position for one scroll direction (vert./horiz.) only?

  • September 13, 2023
  • 2 replies
  • 752 views

Axel1

Hello everyone,

I’m trying to achieve a scrolling behaviour which is best known from spreadsheet applications (such as Excel):
I have created table with columns and rows and the table is overflowing in width and height. Currently, I have a frame with Auto-Layout which holds every row (as a subframe) and inside the row, different cells (as subframes).

What I want is this:
When I scroll vertically, all rows are supposed to scroll with exception of the column header row. When I scroll horizontally, I want the column header row to scroll but the first column of my table to be fixed (with the first column being the row header).

I don’t know how to nest my frames into each other to achieve this behaviour. It seems I can only achieve one but not both. Has anybody an idea how to achieve this two-directional scrolling with fixing elements for a certain scroll direction?

Ideally, I would like to achieve a scrolling behaviour similar to speadsheets, where you cannot scroll “diagonally” (like with a map). Instead, it would be good if either horizontal or vertical scrolling works at a time. This however is probably not possible with Figma, right…?

Best answer by tank666

View original

2 replies

tank666
  • 4854 replies
  • Answer
  • September 13, 2023

Axel1
  • Author
  • 15 replies
  • September 13, 2023

Wow, thanks for the Example file!
This will certainly get very close to what I want to achieve.
Thanks again. Much appreciated! 🙂


Reply


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