Author: konstantin.mishin
Date: 2009-12-28 09:55:14 -0500 (Mon, 28 Dec 2009)
New Revision: 16213
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.js
Log:
RF-7868
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.js
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.js 2009-12-28
06:51:50 UTC (rev 16212)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.js 2009-12-28
14:55:14 UTC (rev 16213)
@@ -60,10 +60,16 @@
var updateLayout = function() {
var offsetWidth = frozenHeaderPartElement ? frozenHeaderPartElement.offsetWidth : 0;
- normalPartStyle.width = element.clientWidth - offsetWidth + "px";
- var delta = scrollElement.firstChild.offsetHeight - scrollElement.clientHeight;
- if (delta) {
- scrollElement.style.height = scrollElement.offsetHeight + delta;
+ var width = Math.max(0, element.clientWidth - offsetWidth);
+ if (width) {
+ normalPartStyle.width = width + "px";
+ normalPartStyle.display = "";
+ var delta = scrollElement.firstChild.offsetHeight - scrollElement.clientHeight;
+ if (delta) {
+ scrollElement.style.height = scrollElement.offsetHeight + delta;
+ }
+ } else {
+ normalPartStyle.display = "none";
}
var height = element.clientHeight;
var el = element.firstChild;
@@ -129,6 +135,7 @@
var drag = function(event) {
dragElement.style.left = Math.max(resizeData.left + MIN_WIDTH, event.clientX);
+ return false;
};
var beginResize = function(event) {
var parts = this.id.split(":");
Show replies by date