correct icon size in ListCalendar, fixes #565

This commit is contained in:
rolux 2012-03-07 13:02:08 +01:00
parent 37706512e5
commit 8634476e48

View file

@ -43,7 +43,7 @@ Ox.ListCalendar = function(options, self) {
var eventDuration = (Ox.parseDate(data.end) - Ox.parseDate(data.start)) / 1000,
iconSize = 8;
Ox.forEach(self.durationSize, function(size, duration) {
if (eventDuration >= duration) {
if (eventDuration > duration) {
iconSize = size;
} else {
return false;