[TW5] AboveStory content with Classic vs Pop Story views

190 views
Skip to first unread message

Jeff Vance

unread,
Mar 13, 2017, 6:11:32 PM3/13/17
to tiddl...@googlegroups.com
I was experimenting with keeping a tiddler as a header that is permanently above the story, using the $:/tags/AboveStory.  I noticed that the classic story view then starts behaving a little differently from Pop view when it comes to scrolling and opening new tiddlers.  For example, in classic view, opening a new tiddler will open at the top of the story (below the permanent header), but it is scrolled so the new tiddler is at the top of the screen (the permanent header that is above the story is hidden unless you scroll up).  But if you use the Pop view, opening a tiddler will always  scroll to the *very* top.  I'm wondering if there is a way to change the behavior in the classic view.  The whole point of putting something above the story is so it is always seen when you're at the top of the story. Seems to defeat the purpose slightly if classic view is by default scrolling to  a position to hide that stuff.  Any ideas?

Cheers,
Jeff

Jeff Vance

unread,
Mar 20, 2017, 2:56:44 PM3/20/17
to TiddlyWiki

I experimented some more with this, comparing the Classic story view to the Pop story view.  I also looked at the code in $:/core/modules/storyviews/pop.js and $:/core/modules/storyviews/classic.js.  I'm really confused why there is a difference in scrolling between these when there is AboveStory content.  I was thinking maybe I can modify classic.js so that the default scrolling is the same as pop.js, but nothing I do seems to help.  Basically, all I want is for Classic story view to behave the same as the Pop story view when opening a tiddler:  scroll to the very top of story and show the AboveStory content (with the new tiddler just below it).  I'm assuming it *must* be possible since the Pop story view is doing this already and it isn't significantly different.


Jeff Vance

unread,
Mar 20, 2017, 4:39:12 PM3/20/17
to TiddlyWiki
Ok, I did yet another experiment and things are looking promising.  I tried this Top Story View as an alternative to the classic:  https://github.com/felixhayashi/TW5-TopStoryView

It turns out the Top StoryView *does* scroll so the AboveStory content is visible...although for some reason the exact scrolling position of selecting a new title is slightly odd to me. I will investigate more, but I think this is close to the solution I want.
Reply all
Reply to author
Forward
0 new messages