On Thursday, October 24, 2019 at 7:34:50 PM UTC-7, TonyM wrote: > > Thanks heaps. That is workable but I was hoping it could be adjusted > dynamically. So the size can be dragged to fit. >
Try this: First, change the following shadow definitions as shown: $:/themes/tiddlywiki/vanilla/metrics/bodyfontsize {{$:/temp/fontsize}}px $:/themes/tiddlywiki/vanilla/metrics/bodylineheight {{{ [{$:/temp/fontsize}multiply[1.3]] }}}px $:/themes/tiddlywiki/vanilla/metrics/storywidth {{$:/temp/storywidth}}px $:/themes/tiddlywiki/vanilla/metrics/storyright {{$:/temp/storywidth}}px $:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth {{{ [{$:/temp/storywidth}subtract[86]] }}}px Then, write your range controls like this: Story width: <$range tiddler="$:/temp/storywidth" min="600" max="1000" default="770" /> {{$:/themes/tiddlywiki/vanilla/metrics/storywidth}} Font size: <$range tiddler="$:/temp/fontsize" min="15" max="40" default="15" /> {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}} That should do it. Let me know how it goes... enjoy, -e -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0d5af48e-6802-4f98-bb7f-e7807a0dfd58%40googlegroups.com.