Bug 32253: Load all CodeMirror lines initially when using advanced editor

To test:
1. Have advanced editor turned on.
2. Load a record with many lines and see that not all the lines appear until you click on the visible ones.
3. Apply patch and try again
4. All lines should load.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 827df32798)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 278d0bf18a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 92bb8084dd)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
Lucas Gass 2023-05-01 22:13:02 +00:00 committed by Arthur Suzuki
parent a4be7076fa
commit b7ca292f20
No known key found for this signature in database
GPG Key ID: 7558BEE2BEEEBCAA
1 changed files with 1 additions and 0 deletions

View File

@ -1022,6 +1022,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
$('.modal-body').each( function() {
$(this).height( $(window).height() * .8 - $(this).prevAll('.modal-header').height() );
} );
editor.refresh();
}, 100);
}