-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Allow popup height to be changed with a setter #373
Conversation
Keyboard height is not dynamically calculated, but set manually instead.
I'd prefer the approach that was mentioned earlier - allow setting height in the builder and if it's 0, calculate the height - otherwise use set height. |
Consider the following case:
For such scenario a simple setter would be quite useful. |
So what do you think? |
It will use its current height, and calculate it from the first keyboard opening only.
…t mode: Keyboard height is not dynamically calculated, but set manually instead.
Hey, @mario , take a look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not create multiple EmojiPopup's hence when you initialize it you should know the height.
Why do you need the set method on the Popup itself?
Co-Authored-By: Niklas Baudy <niklas.baudy@vanniktech.de>
Yeah sure, but the gboard has an option to change its height from settings, which may occure when emojipopup is already created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. I'm cool with it. Let's wait for @mario
I'll test this in the coming days. |
Any updates? @mario |
Looks ok. |
@VitalyKuznetsov can you fix the CI? |
Can be merged after rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@VitalyKuznetsov are you still using this method and if so; can you show me your code which detects that the keyboard height has been changed and hence you are manually calling this method? |
Adding functionality to EmojiPopup to be opened in a different mode:
Keyboard height is not dynamically calculated, but set manually instead.