change the macro to this, should work. 

\define toggle-muuri-columns()
<$reveal state="$:/config/muuri!!column-count" type="nomatch" text="">
<$reveal state="$:/config/muuri!!align-horizontal" type="nomatch" 
text="yes">
<$set name="columnCount" value={{$:/config/muuri!!column-count}}>
.tc-tiddler-frame, .tc-tiddler-edit-frame {
    width: calc((100% / <<columnCount>>) - 16px) !important;
    min-width: calc((100% / <<columnCount>>) - 16px) !important;
}
@media (min-width: 500px) {
.tc-tiddler-frame, .tc-tiddler-edit-frame {
    width: calc((100% / <<columnCount>>) - 16px) !important;
    min-width: calc((100% / <<columnCount>>) - 16px) !important;
}
}
</$set>
</$reveal>
</$reveal>
<$reveal state="$:/config/muuri!!column-count" type="nomatch" text="">
<$reveal state="$:/config/muuri!!align-horizontal" type="match" text="yes">
<$set name="columnCount" value={{$:/config/muuri!!column-count}}>
<$set name="computedWidth" filter="[eval[100 / <<columnCount>>]]">
.tc-tiddler-frame, .tc-tiddler-edit-frame {
    width: calc((100vw - 84px) / <<columnCount>> - 16px) !important;
    min-width: calc((100vw - 84px) / <<columnCount>> - 16px) !important;
}
@media (min-width: 500px) {
.tc-tiddler-frame, .tc-tiddler-edit-frame {
    width: calc((100vw - 84px) / <<columnCount>> - 16px) !important;
    min-width: calc((100vw - 84px) / <<columnCount>> - 16px) !important;
}
}
</$set>
</$set>
</$reveal>
</$reveal>
\end

Am Freitag, 29. Dezember 2017 12:44:22 UTC+1 schrieb Evgeniy Degtyar:
>
> When I installed eval and math.js it started to work very slow. And it was 
> not so smooth. It's freezing a little bit every time when you click any 
> link. I'll try it to understand why this is happening.Or will change macro. 
>
>
> Hello @Evgeniy Degtyar,
>>
>> you need the eval plugin by @tobibeer to have it work,
>> I forgot to mention that, thanks for pointing this out!
>>
>> get it here: http://tobibeer.github.io/tw5-plugins/#eval
>>
>> and get also the math.js library on that site, it's needed to have the 
>> eval plugin work
>>
>> though, it's possible to have it work also without that plugin, changing 
>> some lines...
>>
>> I think that in the future the eval plugin will no more be a dependency. 
>> Right now, get it to have the columns working, or ... you can hack around 
>> in $:/plugins/BTC/tiddly-touch/macros and change the "toggle-muuri-columns" 
>> macro to your needs.
>>
>> Also, if you're experiencing that columns are not side-by-side (tiddlers 
>> may  be a little bit too wide), change a value in that line: <$set 
>> name="computedDiff" filter="[eval[84 / <<columnCount>> + 16 / 
>> <<columnCount>>]]"> *to *<$set name="computedDiff" filter="[eval[84 / 
>> <<columnCount>> + *18 */ <<columnCount>>]]"> or something higher ...
>>
>> This calculation is not thought-out well, just a fast tinkering... if 
>> anyone finds a good solution for this calculation (the different 
>> tiddler-widths for 2, 3 and 4 columns) I'd appreciate :) 
>>
>>
>> Math makes me head-aches ;)
>>
>> best wishes,
>> Simon
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9712ad2d-0e21-410f-aad1-512c4bb55677%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to