colibris: adds toolbar border when editor is scrolling

This commit is contained in:
Sebastian Castro 2020-04-17 08:44:56 +02:00 committed by muxator
parent f650d3a35a
commit 705b6c5e2e
4 changed files with 31 additions and 9 deletions

View file

@ -171,6 +171,11 @@ var padeditbar = (function()
});
$('select').niceSelect();
// When editor is scrolled, we add a class to style the editbar differently
$('iframe[name="ace_outer"]').contents().scroll(function() {
$('#editbar').toggleClass('editor-scrolled', $(this).scrollTop() > 2);
})
},
isEnabled: function()
{