Comment 2 for bug 1867999

Revision history for this message
Robert Lyon (robertl-9) wrote :

My initial patch was a blunt instrument and doesn't fix the underlying problem

The problem seems to only exist for gridstack pages

And the bits of code that seem to be bad are:

        var blockContent = $('<div id="block_' + block.id + '"><div class="grid-stack-item-content">'
            + block.content +
            '<div/><div/>');

this bit above puts 'null' on the page because the content is set to null

and the following bit

            $(element).find('.grid-stack-item-content .gridstackblock')[0].scrollHeight +

Throws this console error

TypeError: $(...).find(...)[0] is undefined

because there is no content to find the scrollHeight of