I'd like to propose adding a macro to the TW core functionality that returns the viewport dimensionsThe use-cases can be many
Hi,
On Friday, February 16, 2018 at 10:21:26 AM UTC+1, Simon Huber wrote:I'd like to propose adding a macro to the TW core functionality that returns the viewport dimensionsThe use-cases can be manyCould you name some?
I'm a little bit concerned, that a macro won't be always updated. ... Since they are only calculated, if rendered. ... But I may be wrong here, without tests.
-m
--
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/e751f885-5861-476c-9ae6-358a6ab1ecaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think the way to do this is as a startup module that listens for viewport size changes and then updates a couple of state tiddlers with the values. The changes to those tiddlers would then trigger any necessary rerendering via the refresh process.The new DynaView plugin already listens for scroll and resize events, and so it might be reasonable to extend it with these features:
Best wishesJeremy
should it do this by default or by enabling it through a config tiddler?
Best wishesJeremySimon
--
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/de94fa0f-bd17-4029-ac84-11bf9019964b%40googlegroups.com.
Could you name some?
Could you name some?
Loading separate page-templates for mobile platform would be a start.
IMHO, shouldn't we add them as a part of existing $:/Info tiddlers? That is where it is expected, right? If we do that, third party themes which radically changes outlook by differing Pagetemplates can make use of it. Please consider if not too late already.
I do not mind that either - as long as I do not have to install a plugin just to get access to this piece of info. As in, I recommend this to core - instead of a plugin.