Fix for calculating elfinder it's maximum allowed height, and solves Maximum callstack problems in some browsers.