Solution for sticky titles?

49 views
Skip to first unread message

Mat

unread,
Apr 5, 2016, 1:05:37 PM4/5/16
to TiddlyWikiDev
https://css-tricks.com/scroll-fix-content/

Could this be a way to get sticky titles and/or sticky sidebar-head to work irregardless of browser? (CSS sticky doesn't work in all browsers)

<:-)

Jeremy Ruston

unread,
Apr 5, 2016, 1:31:27 PM4/5/16
to tiddly...@googlegroups.com
Hi Mat

It's a good article. It describes how to emulate position: sticky with JavaScript. That's the technique we'd use if we were to create some sort of position: sticky widget.

But the approach that might be worth exploring first is to drop in an off-the-shelf polyfill for position: sticky. Because of the ropey browser support there are quite a few that are designed to be dropped in as a simple <script> tag that magically fixes things. A quick Google suggests that this one is popular:

https://github.com/wilddeer/stickyfill

It'd be a fairly simple task to research the available alternatives and try them out. If necessary, I wouldn't be against small core changes to accommodate the needs of a polyfill plugin.

Best wishes

--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/d4582b69-34aa-4a32-a42c-3468c6fb488e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mat

unread,
Apr 5, 2016, 3:35:35 PM4/5/16
to TiddlyWikiDev
Ok, thanks.

Should I post an issue for this? It has been brought up briefly in other issues but there is no explicit one  that I can find for "Implement sticky"

<:-)

Reply all
Reply to author
Forward
0 new messages