Merge pull request #1004 from Riksarkivet/navigationControlAnchorFix

Use control anchor configuration for custom toolbar also
This commit is contained in:
Ian Gilman 2016-08-15 14:35:08 -07:00 committed by GitHub
commit e80c05183b

View File

@ -1746,7 +1746,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
if( this.toolbar ){
this.toolbar.addControl(
this.navControl,
{anchor: $.ControlAnchor.TOP_LEFT}
{anchor: this.navigationControlAnchor || $.ControlAnchor.TOP_LEFT}
);
} else {
this.addControl(