So resizing was broken, but it seems to be working properly now. This was mainly a problem when using this in a responsive context.