FIX: Prevent emoji-picker from not showing (#7856)

If an external plugin inserts an element with class "emoji-picker", something probable if they extend EmojiPicker, it could cause troubles as css is added depending on the emoji-picker height. Just by adding a class of a parent <div> as could be d-editor, we prevent this from happening.
This commit is contained in:
Mario Santos 2019-07-04 11:46:21 +02:00 committed by Joffrey JAFFEUX
parent a5e80079d6
commit c5625b70f1

View File

@ -565,7 +565,7 @@ export default Ember.Component.extend({
} else {
const previewInputOffset = $(".d-editor-input").offset();
const pickerHeight = $(".emoji-picker").height();
const pickerHeight = $(".d-editor .emoji-picker").height();
const editorHeight = $(".d-editor-input").height();
const windowBottom = $(window).scrollTop() + $(window).height();