fix resizing logic for IE11, FireFox, and Safari browsers
fixing samples having a style line, other samples need fixing too