mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 03:27:18 +00:00
Scrollable: write bound value if title of bound tiddler changes
Thanks @yaisog
This commit is contained in:
parent
c282208668
commit
6b47cbed32
@ -183,7 +183,7 @@ ScrollableWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
"scroll-left": self.outerDomNode.scrollLeft.toString(),
|
"scroll-left": self.outerDomNode.scrollLeft.toString(),
|
||||||
"scroll-top": self.outerDomNode.scrollTop.toString()
|
"scroll-top": self.outerDomNode.scrollTop.toString()
|
||||||
};
|
};
|
||||||
if(!existingTiddler || (existingTiddler.fields["scroll-left"] !== newTiddlerFields["scroll-left"] || existingTiddler.fields["scroll-top"] !== newTiddlerFields["scroll-top"])) {
|
if(!existingTiddler || (existingTiddler.fields["title"] !== newTiddlerFields["title"]) || (existingTiddler.fields["scroll-left"] !== newTiddlerFields["scroll-left"] || existingTiddler.fields["scroll-top"] !== newTiddlerFields["scroll-top"])) {
|
||||||
self.wiki.addTiddler(new $tw.Tiddler(existingTiddler,newTiddlerFields));
|
self.wiki.addTiddler(new $tw.Tiddler(existingTiddler,newTiddlerFields));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user