mod_base: Fix rendering issue in TinyMCE when scrolling

Fixes #509
(cherry picked from commit b5f11b777b1d0fb345d787546accab0970b1a9e8)