Fixing thumbnails layout and rendering

This commit is contained in:
Bruno Alves de Faria committed 2017-10-25 22:20:43 -02:00
1 parent 05b2aa3e15
commit ed0bde0404
3 files changed
+3 -3

No files matched your search

@@ -46,7 +46,7 @@ Template.imageThumbnail.onRendered(() => {
cornerstone.disable(element); cornerstone.disable(element);
// Enable cornerstone for thumbnail element again creating a new canvas // Enable cornerstone for thumbnail element again creating a new canvas
cornerstone.enable(element, { renderer: OHIF.cornerstone.renderer }); cornerstone.enable(element, { renderer: '' });
// Activate the loading state // Activate the loading state
$loading.css('display', 'block'); $loading.css('display', 'block');
@@ -19,7 +19,7 @@
<div class="study-switch rp-t-1 rp-x-1"> <div class="study-switch rp-t-1 rp-x-1">
<div class="title-label">Study</div> <div class="title-label">Study</div>
<div class="study-box r-font"> <div class="study-box r-font">
{{#scrollArea class='study-browser'}} {{#scrollArea class='study-browser' scrollStep=91}}
{{>Template.dynamic template=studyBrowserTemplate data=(clone this currentStudy=instance.currentStudy)}} {{>Template.dynamic template=studyBrowserTemplate data=(clone this currentStudy=instance.currentStudy)}}
{{/scrollArea}} {{/scrollArea}}
</div> </div>
@@ -103,7 +103,7 @@ Template.seriesQuickSwitch.events({
const $switch = $(event.currentTarget); const $switch = $(event.currentTarget);
const browserWidth = $switch.offset().left + $switch.outerWidth(); const browserWidth = $switch.offset().left + $switch.outerWidth();
const $seriesBrowser = $switch.find('.series-browser'); const $seriesBrowser = $switch.find('.series-browser');
$seriesBrowser.width(browserWidth); $seriesBrowser.width(browserWidth - (browserWidth % 237));
instance.$('.series-quick-switch').addClass('series-triggered'); instance.$('.series-quick-switch').addClass('series-triggered');
}, },