在IE7中,首先点击网格会导致ExtJS Ext.grid.GridPanel跳转到页面顶部 [英] In IE7 the first click on a grid causes an ExtJS Ext.grid.GridPanel to jump to the top of the page
本文介绍了在IE7中,首先点击网格会导致ExtJS Ext.grid.GridPanel跳转到页面顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只在这个网格上注册了两个监听器:
listeners:{
rowclick:function(grid,rowIndex ,e){
...我的处理程序
},
sortchange:function(grid,rowIndex,e){}
你有什么想法吗?
解决方案
我在Internet Explorer 7中遇到类似的错误。 :1;位置:相对;在周围的容器有助于强制布局属性。
I have a strange issue with an Array fed ExtJS gridPanel - in IE7 only, before the rowclick event is fired, when I click on a row, the page scrolls up 2-3 rows. On repeated clicks, the page scrolls up until the page is at the top of the page. Then only the rowclicks are passed through to my handler. I only have two listeners registered on this grid:
listeners: { rowclick:function(grid, rowIndex, e) { ... my handler }, sortchange : function(grid, rowIndex, e){}
Do you have any ideas?
解决方案
I experienced similar bug in Internet Explorer 7. For me zoom:1; position:relative; on surrounding container helped to force layout property.
这篇关于在IE7中,首先点击网格会导致ExtJS Ext.grid.GridPanel跳转到页面顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文