jmadler / emoji-picker

Add a slick emoji selector to input fields and textareas on your website.
Other
1.32k stars 318 forks source link

Popup direction #154

Open ErcinDedeoglu opened 4 years ago

ErcinDedeoglu commented 4 years ago

How can I change popup direction from bottom to upper?

vutran0111 commented 4 years ago

+1

Srisylam commented 3 years ago

$('#input-default').emojiPicker({ position: 'top', onShow: function () { var emg = setInterval(() => { if ($('.emojiPicker:visible').length >= 1) { var Left = parseInt($('.emojiPicker:visible').css('left')) Top = parseInt($('.emojiPicker:visible').css('top')); $('.emojiPicker:visible').css({ left: (Left - 00) + 'px', top: (Top - 420) + 'px' }).addClass('visible'); clearInterval(emg); } }, 20); }, onHide: function () { $('.emojiPicker').removeClass('visible'); } });