From 60deb9c0705b661f5a380dd1565cb38da9e3ac0c Mon Sep 17 00:00:00 2001 From: "Emanuel F. Oliveira" Date: Tue, 15 Nov 2016 20:48:23 -0200 Subject: [PATCH] LT-326: Show all series of a study after loading it in Studies Sidebar (moving original logic to newly created method) --- .../studyTimepointBrowser/studyTimepointStudy.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Packages/ohif-viewerbase/client/components/viewer/studyTimepointBrowser/studyTimepointStudy.js b/Packages/ohif-viewerbase/client/components/viewer/studyTimepointBrowser/studyTimepointStudy.js index f09153b4c..f36ee7733 100644 --- a/Packages/ohif-viewerbase/client/components/viewer/studyTimepointBrowser/studyTimepointStudy.js +++ b/Packages/ohif-viewerbase/client/components/viewer/studyTimepointBrowser/studyTimepointStudy.js @@ -25,13 +25,6 @@ const initializeStudyWrapper = instance => { $thumbnails.css('max-height', ''); $thumbnails.css('max-height', $thumbnails.height()); $study.removeClass('active'); -}; - -// Initialize the study wrapper max-height to enable CSS transition -Template.studyTimepointStudy.onRendered(() => { - const instance = Template.instance(); - - initializeStudyWrapper(instance); // Here we add, remove, and add the active class again because this way // the max-height animation appears smooth to the user. @@ -40,6 +33,14 @@ Template.studyTimepointStudy.onRendered(() => { $study.addClass('active'); }, 1); } + +}; + +// Initialize the study wrapper max-height to enable CSS transition +Template.studyTimepointStudy.onRendered(() => { + const instance = Template.instance(); + + initializeStudyWrapper(instance); }); Template.studyTimepointStudy.helpers({