mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 22:19:40 +08:00

This commit takes advantage of the `ResizeObserver` to know when dates should be re-computed, it works like this: ``` scrollable-div -- child-enclosing-div with resize observer ---- message 1 ---- message 2 ---- message x ``` It also switches to bottom/height for date separators sizing, instead of bottom/top, it prevents a bug where setting the top of the first item (at the top) would cause scrollbar to move to top. <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->