Commit f8ebb8d6 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix conflict

parents 5015fd86 c41deabd
......@@ -2613,10 +2613,16 @@
while (parent && parent.tagName !== 'BODY') {
try {
v = parent.getBoundingClientRect()[key];
if (v) {
break;
} catch(e) {
if (key === 'width') {
// In IE in certain cases getBoundingClientRect
// will cause an "unspecified error"
v = parent.offsetWidth;
}
} catch(e) {}
}
if (v) {
break;
}
parent = parent.parentNode;
}
return v;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -46,10 +46,16 @@ c3_chart_internal_fn.getParentRectValue = function (key) {
while (parent && parent.tagName !== 'BODY') {
try {
v = parent.getBoundingClientRect()[key];
if (v) {
break;
} catch(e) {
if (key === 'width') {
// In IE in certain cases getBoundingClientRect
// will cause an "unspecified error"
v = parent.offsetWidth;
}
} catch(e) {}
}
if (v) {
break;
}
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