Skip to content

Commit

Permalink
Ensure that all titlePane and contentPane widgets have a placeAt para…
Browse files Browse the repository at this point in the history
…meter so they are loaded first.
  • Loading branch information
tmcgee committed Jan 10, 2017
1 parent 3d20129 commit dadb62a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions viewer/js/viewer/_WidgetsMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ define([
widget.widgetKey = widget.widgetKey || widget.id || key;
if (widget.include && (!this.widgets[widget.widgetKey]) && (array.indexOf(widgetTypes, widget.type) >= 0)) {
widget.position = (typeof (widget.position) !== 'undefined') ? widget.position : 10000;
if ((widget.type === 'titlePane' || widget.type === 'contentPane') && !widget.placeAt) {
widget.placeAt = 'left';
}
widgets.push(widget);
this.widgets[key] = true; // will be replaced by actual widget once created
}
Expand Down

0 comments on commit dadb62a

Please sign in to comment.