Sticky Scroll Element #676
rminderhoud
started this conversation in
Show and tell
Replies: 1 comment
-
|
Hey, that's awesome! I've never tried anything like this myself, so it's great to see it working out. The solution looks quite elegant. Thanks a lot for sharing, I'm sure this can be useful to others too. Your project looks very interesting, looking forward to following updates. Feel free to continue posting screenshots as things develop :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, we have started to convert our UI for https://www.roseonlinegame.com to RmlUi. We recently converted a window that contains table data and we wanted to be able to have "sticky" columns and a "sticky" header. Through careful usage of flex boxes we got the layout mostly there but there was no built-in functionality for "sticky"-ness. We ended up creating a custom element to support this that enables elements to be "sticky" relative to some parent that has overflow + scrolling but also enables scrolling the inner content of the sticky element based on the scroll location. This gives us a nice table effect. The code ended up being fairly simple for this element so I thought I'd share in case others found it useful. Here's the end result:
2024-09-25-00-12-21-capture.mp4
Some highlights:
This gives us a nice table effect. The code ended up being fairly simple for this element so I thought I'd share in case others found it useful:
BYOS - Bring your own stylesheet!
Beta Was this translation helpful? Give feedback.
All reactions