Comments (5)
UPDATE: I was able to duplicate this behavior in this Storybook Example by setting the font-size
on the body
tag to 0.875rem
from chat-ui-kit-react.
Hi @nzayatz14, thank you for the great research. I use Perfect scroll for scrolling and this issue has a long story here: https://github.com/mdbootstrap/perfect-scrollbar/issues/920
I thought I have finally resolved this problem, but it seems I have not :(
It's great that you have found how can it be reproduced. I will try to fight this.
Btw, the Perfect scrollbar has also some caveats with flexbox, so I'm working on an alternative scroll solution. It should be available in one of the next releases.
from chat-ui-kit-react.
Hey @supersnager, any updates on this?
from chat-ui-kit-react.
Hey @supersnager, I managed to find a work around for this until you get around to your scrolling rewrite.
Pull request can be found here.
Thanks,
Nick
from chat-ui-kit-react.
@nzayatz14 I have checked your solution but it unfortunately not works in the simplest test case.
What I checked?
I applied your fix, opened the Storybook, and set body font-size to 0.875rem like in your repro.
This not works because when the scroll event occurs the <MessageList /> component is not updated, so the code fixed by you is not executing.
But your work led me to some other ideas on how to deal with this issue.
IMO the problem still lies in the perfect scrollbar. It can be related to the toInt function which is often used there to get the pixel size from strings. Values passed to this function are from getBoundedClientRect and can be floating numbers, so they are truncated to an integer by parseInt. In some circumstances, this can lead to wrong size calculation.
Please be patient, I need to do more tests on different browsers and devices.
from chat-ui-kit-react.
Related Issues (20)
- Keep disabled MessageInput sendButton when text is none even if props is given. HOT 1
- Conversation list is not shown in phone HOT 1
- Formatting AvatarGroup in ConversationHeader HOT 3
- React-level dynamic theming/css style
- Typing effect animation HOT 3
- Bug: null is not an object (evaluating 't.scrollTop')
- the input message show value when paste the same value continuously but the state of value not update
- How to put a date under message
- MessageGroup.Footer with Avatar looks odd
- Expose onKeyPress for MessageInput
- Allow using send button when there is no message text HOT 3
- Scroll to message on browser-native find
- Regarding Chat Reply UI of one another user HOT 1
- IOS 16 version issue of clicking button as Message.CustomContent HOT 3
- Unexpected overflow on ChatContainer HOT 2
- transitionning between the chatcontainer and the sidebar in mobile display HOT 3
- Simple styling with tailwind
- Unexpected width and height change inside components in Message.HtmlContent. HOT 1
- [HELP] How to use the streaming message feature? HOT 4
- Not working on Next.js HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-ui-kit-react.