Wait! Looks like we don't have enough information to add this to bug database. Please follow this
template bug format.
-
Sencha User
Uncaught TypeError: Cannot set property 'scrollTop' of null in Chrome 39.0.2171.99 m
Ext version tested:
Browser versions tested against:
DOCTYPE tested against:
Description:
- Uncaught TypeError: Cannot set property 'scrollTop' of null in Chrome console
- if(Ext.supports.Touch){document.body.scrollTop=0} in app.js
OS:Windows 8.1
-
Thanks for the report. Can you please post a test case which reproduces this issue?
https://fiddle.sencha.com/#home
-
Sencha User
It is probably because of scrollable:true in my viewport.
I set it to false ,it's work ok.
There are left menus based on accordition on viewport's west.
-
Yes, if Ext.supports.Touch is true, then Viewport's afterLayout fails, because document.body is null.
Code:
afterLayout: function(layout) {
if (Ext.supports.Touch) {
document.body.scrollTop = 0;
}
this.callParent([layout]);
}
Somehow it is only reproducible with a Viewport's "scrollable: true".
-
This is still present in Ext 6.0.2