Skip to content

Commit

Permalink
Merge pull request #735 from cmv/fix/StreetView-parentWidget
Browse files Browse the repository at this point in the history
Trigger streetview 'layoutChange'
  • Loading branch information
tmcgee authored Jul 3, 2017
2 parents 51bfd3c + 6e84a44 commit 3040477
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions viewer/js/gis/dijit/StreetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ define([
this.own(aspect.after(this.parentWidget, 'toggle', lang.hitch(this, function () {
this.onLayoutChange(this.parentWidget.open);
})));

// trigger layout change since parentWidget might
// already be open
this.onLayoutChange(this.parentWidget.open);
}
this.own(aspect.after(this.parentWidget, 'resize', lang.hitch(this, 'resize')));
this.own(topic.subscribe(this.parentWidget.id + '/resize/resize', lang.hitch(this, 'resize')));
Expand Down

0 comments on commit 3040477

Please sign in to comment.