is there a way to make storyviews work in new windows?

64 views
Skip to first unread message

Simon Huber

unread,
Jun 17, 2018, 6:20:35 AM6/17/18
to TiddlyWikiDev
The problem:

I open a new window from within a wiki with its own navigator and story-list
I can display and open tiddlers, but navigation and animations don't work

I suspect that something isn't able to talk to the root window here, the $tw.rootWidget doesn't get "tm-scroll" events from this window for example

Does anybody know if this is fixable?

Simon

Jeremy Ruston

unread,
Jun 18, 2018, 4:05:41 AM6/18/18
to tiddly...@googlegroups.com
Hi Simon

I'd guess that maybe there are some hardcoded references to window or document in one or other of the storyviews?

Best wishes

Jeremy


Simon

--
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/7b99ef93-e915-405e-b006-83e0b1004603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

TonyM

unread,
Jun 19, 2018, 8:07:03 PM6/19/18
to TiddlyWikiDev
Simon,

First, Of course without a story list tiddler the navigation tends to be reflected in the browser tab the new window came from. Which makes Open in New Window a great remote control, but you case is different.

I hope this may help, but I am not sure.

I think what I learned below may have some relevance here? Jeremy may be able to take this further

  • I noticed recently when I wanted to add Google Material Resources I could get this to happen by placing the required link in a tiddler tagged $:/tags/TopRightBar
  • <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  • This is thus displayed whenever the toprightbar is displayed (even if it is invisible)
  • All good, then I noticed that material resources are not available in the Open New Window.
  • Clearly a number of page elements are not included when displaying a tiddler in a new window.
A Quick fix was to include the above link in the tiddler body, then when I open it in a new window and it now had access to the material resources as well.

Other cases occur where Open in New Window fails to display anything or some elements possibly because style-sheets, other inclusions are not available in the window.

We need to somehow identify the missing hidden components and make them available to the new window, hopefully the is a way to do this so we need not code each case.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages