Revert "RF-13616: Skipped the width calculation in the doResizeOrMove function when options.autosized is true"

This reverts commit 32fa85ffc84e37154fa7efef3a9645617a75f7ee.
RF-13616: Changed the togglePanel to trigger a resize event when it's contents are toggled
RF-13616: Fixed the popupPanel implementation to respond to resize events of it's contents, and to respect minWidth and maxWidth values when autosizing
RF-13629: Applied the same changes to the height handling as were applied to the width handling in RF-13616
RF-13629: Prevented width and height resets when the popup is moved and not resized
RF-13616: Dynamically calculated the scrollbar height used in the popupPanel height calculation
RF-13616: Replaced the scrollbar height cacluclation with a cache of the shadow/scroller height difference
RF-13629: Made the move/resize inference more aggressivle apply the resize logic
RF-13629: reset dimensions according to current window
RF-13629: reset position before resizing
Merge branch 'release/4.3.7'