[twdev] Re: How do you diagnose and troubleshoot Macros?

2014-12-24 Thread aelocson
Hi Rich, As it was me who built some of those macros, I feel I should reply. But I don't write JavaScript for a living, so I'm hoping to learn some tricks from others… The easiest brute-force technique is to insert calls to JavaScript's alert function, to display the values of variables at

[twdev] [TW5] Navigation bar problem: Tiddler cut of after scroll... scrollTo Offset option needed!

2014-12-24 Thread Felix Küppers
Hi, I am trying to get a topnavigation bar working and I experience the following problem: Any tiddler navigation results in a scroll of the storyriver to focus a tiddler. The focussing sets the storyriver to a certain position I cannot influence by any config so if I have a navigation bar, I

Re: [twdev] [TW5] Navigation bar problem: Tiddler cut of after scroll... scrollTo Offset option needed!

2014-12-24 Thread Jeremy Ruston
Hi Felix The inability of the story river to take into account pinned sidebars is definitely a problem. I could have sworn there was already a ticket, but I have created one here: https://github.com/Jermolene/TiddlyWiki5/issues/1285 The trouble with your proposed solution of a single offsetY

Re: [twdev] How do you diagnose and troubleshoot Macros?

2014-12-24 Thread Jeremy Ruston
Hi Rich Here's one useful trick. Let's say that you're working on a macro myFancyMacro and it's not working as you expect. You can inspect the wikitext that is generated by the macro with: $text text=myFancyMacro/ The dumpvariables macro can also be useful. It shows the variable values in force

Re: [twdev] [TW5] Navigation bar problem: Tiddler cut of after scroll... scrollTo Offset option needed!

2014-12-24 Thread Ton Gerner
Hi Jeremy, Felix, I remember Tobias Beer discussed the same thing at Github; see Avoid unnecessary scrolling at startup #981 and references therein. Cheers, Ton On Wednesday, December 24, 2014 1:34:32 PM UTC+1, Jeremy Ruston wrote: Hi Felix The inability of the story river to take into

Re: [twdev] [TW5] Navigation bar problem: Tiddler cut of after scroll... scrollTo Offset option needed!

2014-12-24 Thread Ton Gerner
Hi Felix, There are 2 things: 1) Scrollling to the top of the window, see #981: Avoid unnecessary scrolling at startup 2) Room for a topbar At http://tw5toolbar.tiddlyspot.com by clicking the Home button it is caused by 1). You can scroll down to see the title completely. For 2) (see also

Re: [twdev] [TW5] Navigation bar problem: Tiddler cut of after scroll... scrollTo Offset option needed!

2014-12-24 Thread Felix Küppers
Hi Ton, For 2) (see also e.g. http://tw5toolbar.tiddlyspot.com) you can shift the story-river and the Sidebar downwards (Top Sidebar and Top story-river in Settings; see $:/_stylesheet/settings). Yes at the beginning this works, but stylsheets do not have an effect once tw starts scrolling

Re: [twdev] How do you diagnose and troubleshoot Macros?

2014-12-24 Thread RichShumaker
Thanks Astrid and Thanks Jeremy. I will try this stuff out and happy holidays everyone. Rich Shumaker -- 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