LT-251: Fixing thumbnails issue

This commit is contained in:
Bruno Alves de Faria committed 2016-08-09 15:36:04 -03:00
1 parent 5b0f8e83d0
commit b3f35cf3e9
2 files changed
+4 -3

No files matched your search

@@ -3,14 +3,14 @@ import { OHIF } from 'meteor/ohif:core';
Template.toolbarSection.helpers({
// Returns true if the view shall be split in two viewports
splitView() {
// Run this computation every time the viewports are updated
Session.get('LayoutManagerUpdated');
// Stops here if layout manager is not defined yet
if (!window.layoutManager) {
return;
}
// Run this computation every time the viewports are updated
Session.get('LayoutManagerUpdated');
return layoutManager.viewportData.length > 1;
},
@@ -10,6 +10,7 @@ Template.registerHelper('isDisplaySetActive', (displaySetInstanceUid, viewportIn
return;
}
console.warn('>>>>test');
let viewportData;
if (_.isUndefined(viewportIndex)) {
viewportData = layoutManager.viewportData;