Fixing thumbnails layout and rendering

This commit is contained in:
Bruno Alves de Faria 2017-10-23 17:38:53 -02:00
parent 05b2aa3e15
commit ed0bde0404
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ Template.imageThumbnail.onRendered(() => {
cornerstone.disable(element);
// 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
$loading.css('display', 'block');

View File

@ -19,7 +19,7 @@
<div class="study-switch rp-t-1 rp-x-1">
<div class="title-label">Study</div>
<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)}}
{{/scrollArea}}
</div>

View File

@ -103,7 +103,7 @@ Template.seriesQuickSwitch.events({
const $switch = $(event.currentTarget);
const browserWidth = $switch.offset().left + $switch.outerWidth();
const $seriesBrowser = $switch.find('.series-browser');
$seriesBrowser.width(browserWidth);
$seriesBrowser.width(browserWidth - (browserWidth % 237));
instance.$('.series-quick-switch').addClass('series-triggered');
},