Open aichi opened 13 years ago
When widht/height of element is set in percentage like 100% then enviroment methods offsetWidth and offsetHeight return NaN. We quick fix it like:
get offsetHeight(){ return Math.ceil(parseInt(this.style.height) || 1); }, get offsetWidth(){ return Math.ceil(parseInt(this.style.width) || 1); }
file: html.js
When widht/height of element is set in percentage like 100% then enviroment methods offsetWidth and offsetHeight return NaN. We quick fix it like:
get offsetHeight(){ return Math.ceil(parseInt(this.style.height) || 1); }, get offsetWidth(){ return Math.ceil(parseInt(this.style.width) || 1); }
file: html.js