refs #13303, allow FloatingPane to preserve position on window resize, s...

...ome clean-up to code and test page

(cherry picked from commit 9e9d22c7c76fb1017b53c2967ce5b7146f887ced)