#84 JavaScript conversion changes (#85)

This commit is contained in:
Agriya Dev5
2021-03-18 11:24:23 +05:30
committed by GitHub
parent c71284391b
commit 325720f7c8
14 changed files with 146 additions and 91 deletions

View File

@@ -35,8 +35,8 @@ export default {
const properlySourceSizeTextArea = function () {
// TODO: remove magic numbers here and get values from CSS
const height = $('#svg_source_container').height() - 80;
$('#svg_source_textarea').css('height', height);
const height = parseFloat(getComputedStyle($id(svg_source_container), null).height.replace("px", "")) - 80;
$id('svg_source_textarea').style.height = height + "px";
};
/**