Created
May 27, 2020 15:23
-
-
Save skycrossman/1f923cb21e0f504b315fcea9800599b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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