Instead of applying workaround to the root panel, apply it to the sub window content element instead to prevent scrolling of the document when a sub window is removed. #11713 (#10776)

svn changeset:25899/svn branch:6.8

Change-Id: Ib3cb61e024ba461bcc146b9beb4a52cb6df9ce28