fixed vis for remote git demonstration views

This commit is contained in:
Peter Cottle 2013-07-27 14:51:04 -07:00
parent 082f3c561a
commit 740a94ccf6
5 changed files with 29 additions and 9 deletions

View file

@ -105,6 +105,12 @@ var Visualization = Backbone.View.extend({
treeString: options.treeString
}
));
// if the z index is set on ours, carry that over
this.originVis.customEvents.on('paperReady', _.bind(function() {
var value = $(this.paper.canvas).css('z-index');
this.originVis.setTreeIndex(value);
}, this));
// return the newly created visualization which will soon have a git engine
return this.originVis;
},