using scrollheight/width
scripted update of code from master at af535ef using scrollheight/width