Uncaught TypeError: Cannot read property 'full_width'

Hi,

When I start to load gantt view page, the errors below appear on the console. What potential results will these kind of defects cause? As I want to expand to the full sceen, the horizontal scroll bar don’t appear (it should appear). Could you please tell me that in which situation these defects will appear? Thanks vary much!

dhtmlxgantt.js:137 (var i=this._tasks;if(0>e||e>i.full_width||!i.full_width)return null;)
Uncaught TypeError: Cannot read property ‘full_width’ of undefined

dhtmlxgantt.js:290 (a=Math.max(this.$task_data.offsetWidth-n,0))
Uncaught TypeError: Cannot read property ‘offsetWidth’ of undefined
at Object.t._scroll_sizes (dhtmlxgantt.js:290)
at Object.getScrollSizes (dhtmlxgantt_smart_rendering.js:16)
at Object._takeFromCache (dhtmlxgantt_smart_rendering.js:19)
at Object.getScrollSizes (dhtmlxgantt_smart_rendering.js:20)
at Object.getViewPort (dhtmlxgantt_smart_rendering.js:16)
at Object._takeFromCache (dhtmlxgantt_smart_rendering.js:19)
at Object.getViewPort (dhtmlxgantt_smart_rendering.js:20)
at Object.getRange (dhtmlxgantt_smart_rendering.js:17)
at Object. (dhtmlxgantt_smart_rendering.js:23)
at Object._get_data_range (dhtmlxgantt_smart_rendering.js:22)

Hi,

It seems your code are missing gantt.init call (Gantt attempts to render something without proper initialization)
This is mandatory part of gantt initialization and can’t be skipped