this.container = chart.parent();
$(window).on("resize", function() {
this.container = chart.parent();
$(window).on("resize", function() {
var working_width = self.container.width() - palette_width;
self.width = (working_width < 0) ? 0 : working_width;
self.height = self.container.height();
var working_width = self.container.width() - palette_width;
self.width = (working_width < 0) ? 0 : working_width;
self.height = self.container.height();
if (self.lastKeyDown == SHIFT_BUTTON && self._selected_node != undefined) {
var source_id = self._selected_node.id;
var target_id = d.id;
if (self.lastKeyDown == SHIFT_BUTTON && self._selected_node != undefined) {
var source_id = self._selected_node.id;
var target_id = d.id;
this.width = width || this.width;
this.height = height || this.height;
this.svg.attr('width', width);
this.width = width || this.width;
this.height = height || this.height;
this.svg.attr('width', width);