我有extjs项目。当我使用LTR模式或使用FirFox滚动条工作得很好。但当我使用Chrome时,加载数据后滚动条会移到左侧而不是右侧。
我的RTL项目代码:
Ext.define('App.Application', {
extend: 'Ext.app.Application',
name: 'App',
requires: [
'App.*',
'Ext.rtl.*'
],
launch: function () {
var whichView = 'mainview2';
var elem = document.getElementById("splash");
Ext.ariaWarn = Ext.emptyFn;
Ext.getBody().removeCls('launching');
elem.parentNode.removeChild(elem);
Ext.Ajax.request({
url: "URL",
method: "POST",
success: function (response, opts) {
var result = Ext.decode(response.responseText);
if (result.success) {
Ext.create({
xtype: whichView,
plugins: 'viewport',
rtl: true,
})
}
}
}
});
},
});
1条答案
按热度按时间arknldoa1#
我无法完全解决此问题,但这段代码有点帮助