Skip to content

Commit

Permalink
fix(AbstractWidget): Widgets have higher priority than vtkInteractorO…
Browse files Browse the repository at this point in the history
…bserver
  • Loading branch information
floryst committed Jan 10, 2018
1 parent 920c72a commit 600f1c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Sources/Interaction/Widgets/AbstractWidget/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ export function extend(publicAPI, model, initialValues = {}) {
// Inheritance
vtkInteractorObserver.extend(publicAPI, model, initialValues);

// Use a priority of 0.5, since default priority from
// vtkInteractorObserver is 0.0.
publicAPI.setPriority(0.5);

macro.setGet(publicAPI, model, ['widgetRep', 'parent']);

model.unsubscribes = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ function vtkImageCroppingRegionsWidget(publicAPI, model) {

const DEFAULT_VALUES = {
// volumeMapper: null,
priority: 0.5, // Use a priority of 0.5, since default priority is 0.0
slice: 0,
sliceOrientation: 2, // XY
handleSize: 3,
Expand Down

0 comments on commit 600f1c7

Please sign in to comment.