Properly handle closing and opening of nodes after resizing: https://github.com/deitch/jstree-grid/issues/41