Hi,

Since 5.1.23, we've had the ability to scroll onto a section within a long 
tiddler using the extended tm-scroll widget message 
<https://tiddlywiki.com/#WidgetMessage%3A%20tm-scroll> by specifying the 
scroll target as a CSS class of the target element.

I've tried this both within the <$scrollable/> widget and without using it 
but couldn't get it to work in either case. I keep getting the red JS error 
message ("element undefined").

Here's my code:

<$button actions="""<$action-sendmessage $message="tm-scroll" 
$selector=".bottom"/>""">
Scroll
</$button>

Then there's several paragraphs of the lorem ipsum text with the bottom 
part wrapped in a div with the class "bottom", i.e.:

{{Lorem Ipsum}}
<div class="bottom">
{{Lorem Ipsum}}
</div>

When clicking the above button to scroll, I always get the same JS error 
message. What have I missed?

Thanks for your help.
Hubert

[image: js_error.png]

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/75505bfe-6fc3-4829-8dd4-22fa86a57b2fn%40googlegroups.com.

Reply via email to