Scrollable widget: Fix crash in CI

This commit is contained in:
Jeremy Ruston 2023-11-21 11:49:34 +00:00
parent 0cd3c9a8ac
commit 06b1cc4bca
1 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,10 @@ ScrollableWidget.prototype.render = function(parent,nextSibling) {
};
ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() {
// Bail if we're running on the fakedom
if(!this.outerDomNode.scrollTo) {
return;
}
var tiddler = this.wiki.getTiddler(this.scrollableBind);
if(tiddler) {
var scrollLeftTo = this.outerDomNode.scrollLeft;