To get the plugin the reliably resize I had to change the initialization.