Skip to content

Commit

Permalink
Make sure the first pane widget is at position 0 to avoid error.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Jan 10, 2017
1 parent 0949c40 commit 202596d
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 @@ -68,6 +68,9 @@ define([
paneWidgets.sort(function (a, b) {
return a.position - b.position;
});
if (paneWidgets.length > 0 && paneWidgets[0].position !== 0) {
paneWidgets[0].position = 0;
}
array.forEach(paneWidgets, function (paneWidget, i) {
this.widgetLoader(paneWidget, i);
}, this);
Expand Down

0 comments on commit 202596d

Please sign in to comment.