PDA

View Full Version : [INFOREQ] enableOverflow and ButtonGroups Error



scishop
4 May 2014, 10:41 AM
Having enableOverflow: true on a tbar filled with button groups causes an "Cannot read property 'measuresBox' of null" error if the toolbar overflows.

If enableOverflow is disabled, the toolbar renders without any difficulty (except for the fact part of it is clipped due to overflow). The toolbar also renders correctly if enableOverflow is true, but the toolbar fits in the space without overflow.

Here is the stack trace:



Uncaught TypeError: Cannot read property 'measuresBox' of null ext-all-debug.js:147630

Ext.define.layoutDoneext-all-debug.js:147630
Ext.define.runLayoutext-all-debug.js:148023
Ext.define.runCycleext-all-debug.js:147992
Ext.define.runext-all-debug.js:147927
Ext.define.statics.flushLayoutsext-all-debug.js:71635
Ext.define.statics.resumeLayoutsext-all-debug.js:71643
Ext.resumeLayoutsext-all-debug.js:75619
Ext.define.renderext-all-debug.js:70373
Ext.define.constructorext-all-debug.js:72098
constructorext-all-debug.js:7586
mainInsightEditor.js:699
(anonymous function)InsightEditor.js:14
Ext.env.Ready.invokeext-all-debug.js:10945
Ext.env.Ready.invokeAllext-all-debug.js:10985
Ext.env.Ready.handleReadyext-all-debug.js:10918
(anonymous function)

mitchellsimoens
14 May 2014, 4:46 AM
Can you post a test case?

lucia_mgv
19 Jun 2014, 5:34 AM
This is also happening to me.

I just have any toolbar with buttons and enableOverflow:true.

I have debug the code and it seems to break in the
clearOverflow method when is trying to resumeLayouts.