fixes #11, update viewport config after resize()

see #11