March 2018
Intermediate to advanced
592 pages
13h 44m
English
Over inside the browser, I'm going to go ahead and give things a refresh, and I'm also going to open up the Developer Tools so we can view our console.log statement. You'll notice on smaller screens the styles remove the sidebar. Now I'm going to hit enter a few times. Obviously, we shouldn't be able to send empty messages but we can for the moment, and you can see that Should scroll is printing:

It's not actually going to scroll because the height of our messages container doesn't actually exceed the height of the browser space given to it, but it does indeed pass the condition. Now as we get down further and messages ...