Traditionally, setting scrollTop
of a div can be used to scroll it to the bottom, as shown in this example: http://jsfiddle.net/jPVAf/50/
However, if the div has the style display: flex
, the technique mentioned above will not work. Here is an example demonstrating this:
http://jsfiddle.net/hoch47n6/. How can JavaScript be utilized to scroll the div to the bottom in such cases? Thank you!