Author: konstantin.mishin
Date: 2009-04-03 11:38:23 -0400 (Fri, 03 Apr 2009)
New Revision: 13378
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
Log:
First point of RF-6498 has fixed.
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2009-04-03
15:28:21 UTC (rev 13377)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2009-04-03
15:38:23 UTC (rev 13378)
@@ -223,15 +223,15 @@
}
if (ClientUILib.isIE7) {
setTimeout(function() {
- var body = grid.getBody();
- ["fTable", "nTable"].unbreakableEach(
- function(prop) {
- body[prop].hide();
- body[prop].show();
- }
- );
+ var scrollElement = grid.getBody().scrollBox.getElement();
+ var scrollTop = scrollElement.scrollTop;
+ if (scrollTop) {
+ scrollElement.scrollTop++;
+ } else {
+ scrollElement.scrollTop--;
}
- ,50);
+ scrollElement.scrollTop = scrollTop;
+ }, 50);
}
if (callbacks && countForUpdate>0) {