Use control anchor configuration for custom toolbar also

This commit is contained in:
Sebastian Öberg 2016-03-09 16:54:06 +01:00 committed by Edminsson
parent 03cc8ffa12
commit 77726a684f

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(