Results 1 to 9 of 9

Thread: TypeError: Cannot read property 'offsetHeight' of null

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Location
    Trkiye
    Posts
    6

    Exclamation TypeError: Cannot read property 'offsetHeight' of null

    Hi,

    We have got a strange problem when migrated our big sencha project from extjs 4.2 -> 5.1.

    The problem happens randomly almost every panel.

    We've put debugger point in the ext-all-dev.js file. Screenshot is as follows:

    r1.jpg

    r0.jpg

    This is may be offsetHeight is calculated before rendering operations, kind of bug I think.

    It is very urgent for us because we are moving forward to production environment.
    Any help will be appreciated.

    Thanks in advanced & Best regards

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. I'm not able to see the issue from that image, and wasn't able to find any similar reports. Can you please post a test case which reproduces the issue?
    https://fiddle.sencha.com/#home

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    Portland, Oregon
    Posts
    94

    Default

    Getting the same error. Comes right after doing an Ext.suspendLayouts() -> Ext.resumeLayouts(true). Only seems to happen randomly.

  4. #4
    Sencha Premium User
    Join Date
    Jan 2010
    Location
    Bangalore, India
    Posts
    19

    Default Same Error

    Facing the same Error while Resizing the Regions in the Border Layout

  5. #5
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    From the screenshot it's trying to run a layout on some destroyed element/component, but without any sort of context it's difficult to say what the cause might be.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  6. #6
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    Portland, Oregon
    Posts
    94

    Default

    In my case I'm calling setVisible() on 6 components and updating one textfield while layout is suspended.

  7. #7

    Default

    I am having the same issue with ExtJS 5.1.

  8. #8
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    Portland, Oregon
    Posts
    94

    Default Fixed for me

    I was seeing this error because I had a container component using a tpl that had scrollable set to true but no height specified. The component was one of several that was being hidden or show based on the state of user interaction.

    Hope maybe that helps someone else out. Kind of a cryptic error for what seems like a condition that should be non-breaking.

  9. #9
    Sencha User
    Join Date
    Jun 2015
    Location
    Berlin, Germany
    Posts
    1

    Default

    I had the same error when I tried to add a paging toolbar to a grid panel.In my case it fixes the problem, when I don't set a fixed height on the panel before adding the toolbar. If I set height in the afterRender method of the panel it works.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •