mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1116 from sharelatex/as-fix-history-error
Fix error thrown when viewing history with non-default font size GitOrigin-RevId: f4f561bfe25537663cddf79d1867393bd209dd38
This commit is contained in:
parent
baa5574669
commit
b39cdbc874
1 changed files with 7 additions and 5 deletions
|
@ -762,11 +762,13 @@ define([
|
|||
return doc.off('change', onChange)
|
||||
}
|
||||
|
||||
editor.renderer.on('changeCharacterSize', () =>
|
||||
scope.$apply(
|
||||
() => (scope.rendererData.lineHeight = editor.renderer.lineHeight)
|
||||
)
|
||||
)
|
||||
if (scope.rendererData != null) {
|
||||
editor.renderer.on('changeCharacterSize', () => {
|
||||
scope.$apply(
|
||||
() => (scope.rendererData.lineHeight = editor.renderer.lineHeight)
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
scope.$watch('rendererData', function(rendererData) {
|
||||
if (rendererData != null) {
|
||||
|
|
Loading…
Reference in a new issue