muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
108 stars 230 forks source link

Cannot read property 'height' of undefined #170

Open clxadmin opened 3 years ago

clxadmin commented 3 years ago

Hello, I really like your work and this backend theme :-) Thank you.

I'm facing a issue with some installations on Odoo CE 13. Somethimes this error with undefined 'height' is coming up

TypeError: Cannot read property 'height' of undefined at Class.update (https://brockenstube.admin3.ch/web/content/580-e62b74a/web.assets_backend.js:4039:33) at Class._renderNode (https://brockenstube.admin3.ch/web/content/580-e62b74a/web.assets_backend.js:4085:500) at Class._renderNode (https://brockenstube.admin3.ch/web/content/579-8de3251/web.assets_common.js:3864:371) at Array.map () at Class._renderTagForm (https://brockenstube.admin3.ch/web/content/580-e62b74a/web.assets_backend.js:1701:28) at Class._renderNode [as _super] (https://brockenstube.admin3.ch/web/content/580-e62b74a/web.assets_backend.js:1693:246) at Class._renderNode (https://brockenstube.admin3.ch/web/content/580-e62b74a/web.assets_backend.js:4085:569) at Class._renderNode (https://brockenstube.admin3.ch/web/content/579-8de3251/web.assets_common.js:3864:371) at Class._renderView (https://brockenstube.admin3.ch/web/content/580-e62b74a/web.assets_backend.js:1706:1836) at Class._render (https://brockenstube.admin3.ch/web/content/580-e62b74a/web.assets_backend.js:1413:222)

the reason might be this._setState(record);this.$el.height(this.$el.height());if(this.fields.activity){this.fields.activity.$el.detach();}

It is possible that the hight of the element (this.$el) is been set after it's usage. does anyone know this issue?

Screenshot (49)