kennethkufluk / js-mindmap

JavaScript Mindmap
http://kenneth.kufluk.com/google/js-mindmap/
MIT License
606 stars 146 forks source link

Window width sometimes not set correctly #7

Open drewish opened 13 years ago

drewish commented 13 years ago

When using the default options (which passes height of -1 for automatic detection) the window's width is not always read correctly. It's very noticeable in Chrome if I open up two tabs then close the browser, when it's re-opened one tab will almost always have all the elements stacked at the very left side of the screen. This also hints at another issue which is the resize event doesn't seem to fire correctly.