Refactor #3370 : Add _adjustSizeToBrowser to ensure compatibility