remove unneeded style, modify callback for resize
Merge pull request #3 from jkgit/compatibility

remove unneeded style, modify callback for resize