Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request auto position emojionearea-picker. #131

Open
M-Husein opened this issue May 7, 2017 · 15 comments
Open

Request auto position emojionearea-picker. #131

M-Husein opened this issue May 7, 2017 · 15 comments

Comments

@M-Husein
Copy link

M-Husein commented May 7, 2017

Hi, mervick

Thanks for share your work ;)
I want Request auto position emojionearea-picker, like tether.js.
I mean, the picker can adjust the available space position.

This is what i mean:
illustrate

I hope you can add this feature for your awesome emojione plugin.
Thanks you very much ;)

@mervick
Copy link
Owner

mervick commented May 8, 2017

Hi,
Thank you for your suggestion,
I know about that bug.
I even already fixed this bug before, but only on in closed product with proprietary license and can't just share it.

@M-Husein
Copy link
Author

M-Husein commented May 8, 2017

Oh, I see :)

What available special feature in proprietary license?
Where I can show the list proprietary license?

@mervick
Copy link
Owner

mervick commented May 8, 2017

No, it used in proprietary product of company.

@M-Husein
Copy link
Author

M-Husein commented May 9, 2017

Oh, sorry I misunderstood :)

But, please give me little info or guide to implement this,
Do you use tether.js or build your own auto position system?

@mervick
Copy link
Owner

mervick commented May 9, 2017

I build my own auto position system, it detects position of picker button and window height, also it reacts on window scrolling

@M-Husein
Copy link
Author

Ok, I try build without tether.js, Thank you very much.

👍

@mervick mervick added this to the v4.0.0 milestone Aug 3, 2017
@Zeokat
Copy link

Zeokat commented Mar 31, 2018

This bug is really annoying. Could anyone solve it?

I love this project, but is useless on most mobile websites that i use it. The emojionearea can't be accessed properly.

Anyone knows an emoji picker without this issue?

@sharet08
Copy link

ojis. 😎🤠😏😭😡😰🤢

@sharet08
Copy link

😀🇵🇪

@M-Husein
Copy link
Author

M-Husein commented Jun 26, 2018

Hello all,
I change emojionearea picker with bootstrap 4 dropdown menu + popper.js,
auto position success, @mervick I think you should consider using popper.js

Thanks :)

@mervick
Copy link
Owner

mervick commented Jun 26, 2018

@M-Husein it will add additional dependency

@M-Husein
Copy link
Author

@mervick, So, have you added this feature with your own code?

@mervick
Copy link
Owner

mervick commented Jun 26, 2018

@M-Husein no, currently I didn't, but it's not good to add one more dependency for this.
Yes, popper.js is good, but as I remember there are a lot issues with proper version of popper.js and bootstrap 4.
I think popper.js can be used as plugin

@hacknlove
Copy link

This bug is really annoying. Could anyone solve it?

I love this project, but is useless on most mobile websites that i use it. The emojionearea can't be accessed properly.

Anyone knows an emoji picker without this issue?

In mobile websites I hide the button, because users can add emojis from their virtual keyboads

    .emojionearea-button {
      display: none;
      @media (hover:hover) {
        display: block;
      }
    }

@hacknlove
Copy link

try this with "top" positioning

    events: {
      'picker.show' (picker) {
        if (picker.offset().top < 0) {
          picker.css('top', picker.position().top - picker.offset().top)
          picker.css('position', 'absolute')
        }
      },
      'picker.hide' (picker) {
        console.log('hide')
        picker.css('top', '')
        picker.css('position', '')
      }
    }

@mervick mervick removed this from the v4.0.0 milestone Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants