Reintroduced Firefox workaround for Bars charts

This commit is contained in:
Djamil Legato
2016-03-04 08:34:04 -08:00
parent 1b4c63647e
commit 99d894e07e
2 changed files with 13 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ import { translations } from 'grav-config';
import { Instance as gpm } from '../utils/gpm';
import { Instance as updates } from '../updates';
// let isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
let isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
export const defaults = {
data: {
@@ -23,14 +23,13 @@ export const defaults = {
},
Bar: {
height: 164,
// chartPadding: !isFirefox ? 5 : 25, // workaround for older versions of firefox
chartPadding: 5,
chartPadding: !isFirefox ? 5 : 10, // workaround for older versions of firefox
axisX: {
showGrid: false,
labelOffset: {
x: 0,
y: 5
y: 0
}
},
axisY: {
@@ -41,7 +40,7 @@ export const defaults = {
x: 5,
y: 5
},
scaleMinSpace: 20
scaleMinSpace: !isFirefox ? 20 : 10
}
}
}

File diff suppressed because one or more lines are too long