Bug 21307: (follow-up) Change the way Codemirror height is calculated
authorOwen Leonard <oleonard@myacpl.org>
Tue, 5 Mar 2019 14:53:18 +0000 (14:53 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 19 Apr 2019 14:27:56 +0000 (14:27 +0000)
commitb038195735d2e9e64598cf12485aff3c4eeb1948
tree578a3ddd12bfca3434143481b126f519aea5f31e
parent44e1cb20649b8b03a0f1036a05b0b7cf5e42c3e1
Bug 21307: (follow-up) Change the way Codemirror height is calculated

This follow-up changes the way the height of the Codemirror editor is
calculated. Using offset() instead of position() returns the correct
values with the changed markup.

To test, apply the patch and load the advanced MARC editor. The "status
bar" should display correctly a the bottom of the editor and there
should be no double scrollbar.

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc