Skip to content

Commit

Permalink
Slider handler & CSS border fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-kas committed Apr 14, 2013
1 parent 189cedf commit 3882924
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/DcmViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ DcmViewer.prototype.scrollHandler = function(evt) {
DcmViewer.prototype.scrollOne = function(num) {
this.scrollIndex = num;
for(var i = 0, len = this.painters.length; i < len; i++) {
var index = (this.scrollIndex + i > this.numFiles - 1) ? 0 : this.scrollIndex + i;
var index = (this.scrollIndex + i) % this.numFiles;
this.painters[i].currentFile = this.painters[i].series[index];
this.painters[i].drawImg();
}
Expand All @@ -101,8 +101,8 @@ DcmViewer.prototype.matrixHandler = function(e) {
var columns = e.split(',')[1];
var width = parseInt($('#viewer').width());
var height = parseInt($('#viewer').height()) - 72;
var cellWidth = (width - 2 * rows) / columns;
var cellHeight = (height - 2 * columns) / rows;
var cellWidth = width / columns;
var cellHeight = height / rows;

$('#viewerScreen').empty();
var newPainters = [];
Expand Down

0 comments on commit 3882924

Please sign in to comment.