refs  #1558 Vanilla JS auto Resize