off by one in Ox.Chart

This commit is contained in:
rolux 2012-10-27 19:46:27 +02:00
parent dc0d652c4e
commit 41ca92a3d1

View file

@ -212,7 +212,7 @@ Ox.Chart = function(options, self) {
} else {
$element = $('<div>')
.css({
width: Math.round(self.totals[data.key] / self.max * self.valueWidth) + 'px',
width: Math.ceil(self.totals[data.key] / self.max * self.valueWidth) + 'px',
height: '14px',
marginLeft: '-4px'
});