Prevent container scrolling in IE on long tree labels

Fixes #17765.

(cherry picked from commit 6b973fbf125199d03f9e957175ea7c61da4f18c3)