Help find and fix the error. When sending a message, the chat will scroll to the very end and after a second there will be a jump to 4-5 messages up and the last ones sent will not be visible. I do not know what could be the reason. On good, the chat should scroll to the end to the last message and be fixed on it.

With a PC, everything seems to be fine, but from a mobile device, jumps and displacement of messages are noticed.

I attach a video with a bug

Chat Sources

Closed due to the fact that the essence of the question is not clear to the participants 0xdb , Bald , aleksandr barakin , freim , mkkik April 29 at 9:02 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    .block { min-height: 50px; width: 400px; border: solid; margin-bottom: 10px; } 
     <div class="block"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> <div class="block"> Lorem ipsum dolor sit amet </div> 

    • That's the way it is) I tried it before, but if there are 2 lines with text in the block, then all the rules, but if there are 8 lines and more in the blocks, then these blocks with messages start jumping in height, there is a small scrolling in the chat window (if you log in from your mobile device). And when you set a fixed height, then everything is fine. In general, it is better to record a video in order to demonstrate the essence of the problem. - Grasss 5:38 pm