Fix initial scroll in rich text

pull/1/head
yflory 2021-02-09 17:35:41 +01:00
parent 9d64883437
commit 2da6ac87c3
1 changed files with 1 additions and 1 deletions

View File

@ -934,7 +934,7 @@ define([
// Get scroll position
var sTop = $iframe.scrollTop();
var sTopMax = $iframe.innerHeight() - $('iframe').innerHeight();
var scrollMax = Math.abs(sTop - sTopMax) < 1;
var scrollMax = Math.abs(sTop - sTopMax) < 1 && sTop;
// Apply the changes
var patch = (DD).diff(inner, userDocStateDom);