extracted resize function into DebugBar.resize() in debugbar.js. trigger resize() on restore (fixed #90)