/*\ title: $:/core/modules/macros/story/views/sideways.js type: application/javascript module-type: storyview A storyview that shows a sequence of tiddlers as horizontally stacked blocks \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; function setStoryElementStyles(e) { e.style.display = "inline-block"; e.style.width = "380px"; e.style.verticalAlign = "top"; e.style.whiteSpace = "normal"; } function SidewaysView(story) { this.story = story; var wrapper = this.story.child.domNode; // Scroll horizontally wrapper.style.whiteSpace = "nowrap"; // Make all the tiddlers position absolute, and hide all but the first one for(var t=0; t