Modified some buggy styling options in the resizeFunction

The resizeFunction is assuming erroneously when setting style of the dom element, that height and width are numeric values. That doesn't work. You must pass to the setStyle a string like "33px".