-
Notifications
You must be signed in to change notification settings - Fork 310
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
Fixed issue with editor window snapping upward on iOS when ... #33
base: master
Are you sure you want to change the base?
Fixed issue with editor window snapping upward on iOS when ... #33
Conversation
…g to the bottom. See: wix-incubator#32
@artald what do you think? |
@rahimrahman thanks for the PR! I think that it's really great that you found a solution for this, however, I find it a little bit weird that it's solved by doubling the keyboard height. |
@artald in the example app, I need any value bigger than 90 pixels, because the padding on top of the rich text editor is set to 40 and the rich text toolbar height is 50 which amount to 90. But I've tried with any value from 90 - 999, and it seems to fix the issue. In reality, you could use
for https://github.com/wix/react-native-zss-rich-text-editor/blob/master/src/RichTextEditor.js#L92 and it seems to have fixed the issue as well. So we could require user to specify another prop and call it |
@artald any thoughts on my explanation ^^? |
A simple solution is setting the
|
Thanks guys. @rahimrahman your explanation sounds good :) though it still doesn't really tell us why adding an additional offset fixes this issue. Having an additional prop or a way to configure this would be better since I don't know if anyone will have time to check all the use-cases and make sure it doesn't affect or make things worse in different cases. @d4vidi what do you think? can someone from the team look into it? |
@artald i thought I had made it obvious that the height of the html editor needed to be smaller by 90 pixels in the example app because the example app didn't take into account the size of the padding on top of the editor (40 px) & and the height of the of the toolbar (50 px). By reducing the editor height value by 90, the editor is not snapping upward anymore. I still think by setting |
Dear all, how to disable the horizontal scroll indicator? Currently, when I focus on the content, the whole page will scroll to the left and this is not a good behavior when I disable the title section. |
@rahimrahman got it, thanks, it's now clear regarding the padding and toolbar height, but as you said - now it's not so clear why Maybe the safest bet would be to add a prop to opt-in to this fix, otherwise we'll need to verify that this doesn't break anything in some use-case that maybe we didn't think of. Unfortunately, at the moment I don't have the capacity to check it myself. @d4vidi @ihork @yevhenpavliuk FYI, any insights would be welcome. It would also help if you can test the solution with your case. |
scrolling to the bottom. See:
#32 #32
Without fix:
With fix: