Commit 5015fd86 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Merge branch 'DarkoKukovec-master'

parents 01aa08ac 59ef451f
......@@ -2611,10 +2611,12 @@
c3_chart_internal_fn.getParentRectValue = function (key) {
var parent = this.selectChart.node(), v;
while (parent && parent.tagName !== 'BODY') {
v = parent.getBoundingClientRect()[key];
if (v) {
break;
}
try {
v = parent.getBoundingClientRect()[key];
if (v) {
break;
}
} catch(e) {}
parent = parent.parentNode;
}
return v;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -44,10 +44,12 @@ c3_chart_internal_fn.getCurrentPaddingRight = function () {
c3_chart_internal_fn.getParentRectValue = function (key) {
var parent = this.selectChart.node(), v;
while (parent && parent.tagName !== 'BODY') {
v = parent.getBoundingClientRect()[key];
if (v) {
break;
}
try {
v = parent.getBoundingClientRect()[key];
if (v) {
break;
}
} catch(e) {}
parent = parent.parentNode;
}
return v;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment