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

Jeremy


--
Jeremy Ruston
[email protected]
http://jermolene.com

> On 5 Apr 2016, at 18:05, Mat <[email protected]> wrote:
> 
> 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)
> 
> <:-)
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/2AAEE856-F065-44A5-9D23-C3BD9C18266B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to