Skip to content

Commit 0bee408

Browse files
authored
Merge pull request #126 from devinmatte/master
Fixed rounding on event times in calendar
2 parents 0295ba8 + 7a32b20 commit 0bee408

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

assets/src/modules/sm/Schedule/directives/scheduleDirective.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ angular.module('sm').directive('schedule', function($timeout, $filter) {
122122

123123
// Calculate the height
124124
var timeHeight = parseInt(courseEnd) - parseInt(courseStart);
125-
timeHeight = timeHeight / 15;
125+
timeHeight = timeHeight / 7.5;
126126
timeHeight = Math.ceil(timeHeight);
127127

128-
timeHeight = (timeHeight * 10);
128+
timeHeight = (timeHeight * 5);
129129

130130
// Calculate the top offset
131131
var timeTop = parseInt(courseStart) - startTime;
132-
timeTop = timeTop / 30;
132+
timeTop = timeTop / 7.5;
133133
timeTop = Math.floor(timeTop);
134-
timeTop = timeTop * 20;
134+
timeTop = timeTop * 5;
135135
timeTop += 19; // Offset for the header
136136

137137
if(course.courseNum != 'non') {
@@ -256,4 +256,4 @@ angular.module('sm').directive('schedule', function($timeout, $filter) {
256256
}
257257
}
258258
};
259-
});
259+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "schedulemaker",
3-
"version": "3.0.26",
3+
"version": "3.0.27",
44
"private": true,
55
"description": "A course database lookup tool and schedule building web application for use at Rochester Institute of Technology.",
66
"main": "index.php",

0 commit comments

Comments
 (0)