Skip to content

Instantly share code, notes, and snippets.

@skycrossman
Created May 27, 2020 15:23
Show Gist options
  • Save skycrossman/1f923cb21e0f504b315fcea9800599b0 to your computer and use it in GitHub Desktop.
Save skycrossman/1f923cb21e0f504b315fcea9800599b0 to your computer and use it in GitHub Desktop.
fixGridHeight(inputGrid) {
self=this.grid;
//make a function on timeout, because we want the data before we resize.
var resizeTreeGrid = function() {
setTimeout(function() {
var info = self.grid_Experimental.edit.info;
if (info && info.cell) {
self.grid_Experimental.edit.apply();
}
//resize the grid itself
self.resize_Experimental();
}, 0);
};
//call our function on timeout
resizeTreeGrid();
//get the grid element
var el = document.getElementById("ebomGrid");
//height of both the container and the grid being set to a hardcoded size
el.children[0].children[1].children[0].style.height = "100px";
el.children[0].children[1].children[0].children[2].style.height = "50%";
aras.fixLiquidContainerHeight(document, el);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment