Fixed bugs in standalone Viewer, recreated client-only build

This commit is contained in:
Erik Ziegler committed 2016-09-28 09:53:10 -04:00
1 parent 739c6e9e9f
commit da7202de0f
16 files changed
+194 -119

No files matched your search

@@ -3,7 +3,7 @@
<div class="sidebarMenu sidebar-left {{#if leftSidebarOpen}}sidebar-open{{/if}}">
{{> studyBrowser (clone this)}}
</div>
<div class="mainContent {{#if leftSidebarOpen}}sidebar-left-open{{/if}} {{#if rightSidebarOpen}}sidebar-right-open{{/if}}">
<div class="mainContent {{#if leftSidebarOpen}}sidebar-left-open{{/if}}">
{{> standaloneViewerMain (clone this)}}
</div>
</div>
@@ -11,9 +11,5 @@ Template.flexboxLayout.events({
Template.flexboxLayout.helpers({
leftSidebarOpen() {
return Template.instance().data.state.get('leftSidebar');
},
rightSidebarOpen() {
return Template.instance().data.state.get('rightSidebar');
}
});
@@ -2,7 +2,12 @@ import { OHIF } from 'meteor/ohif:core';
Template.standaloneViewerMain.onCreated(() => {
// Attach the Window resize listener
$(window).on('resize', handleResize);
// TODO: Check why this seems to need to be in a defer clause
// here, but not in the other viewers...
Meteor.defer(() => {
$(window).on('resize', handleResize);
});
// Create the synchronizer used to update reference lines
OHIF.viewer.updateImageSynchronizer = new cornerstoneTools.Synchronizer('CornerstoneNewImage', cornerstoneTools.updateImageSynchronizer);