Special XML conversion code for Firefox >= 20.0
[infodrom/rico3] / minsrc / ricoGridCommon.js
index 655e62e..5375846 100644 (file)
@@ -185,6 +185,7 @@ Rico.GridCommon = {
     this.direction=Rico.getStyle(this.outerDiv,'direction').toLowerCase();  // ltr or rtl
     this.align=this.direction=='rtl' ? ['right','left'] : ['left','right'];
     Rico.log('createColumnArray: dir='+this.direction);
+    for (var i=0; i<2; i++) Rico.addClass(this.thead[i].rows[this.headerRowIdx],'rico_ResizeRow');
     this.columns = [];
     for (var c=0; c < this.headerColCnt; c++) {
       Rico.log("createColumnArray: c="+c);
@@ -462,22 +463,6 @@ Rico.GridCommon = {
     return Rico.windowHeight()-divPos.top-2*this.options.scrollBarWidth-15;  // allow for scrollbar and some margin
   },
 
-  setHorizontalScroll: function() {
-    var newLeft=(-this.scrollDiv.scrollLeft)+'px';
-    this.hdrTabs[1].style.marginLeft=newLeft;
-  },
-
-  pluginScroll: function() {
-     if (this.scrollPluggedIn) return;
-     Rico.eventBind(this.scrollDiv,"scroll",this.scrollEventFunc, false);
-     this.scrollPluggedIn=true;
-  },
-
-  unplugScroll: function() {
-     Rico.eventUnbind(this.scrollDiv,"scroll", this.scrollEventFunc , false);
-     this.scrollPluggedIn=false;
-  },
-
   hideMsg: function() {
     this.messagePopup.closePopup();
   },
@@ -793,11 +778,8 @@ Rico.TableColumnBase.prototype = {
  */
   getDisplayName: function(el) {
     var anchors=el.getElementsByTagName("A");
-    //Check the existance of A tags
-    if (anchors.length > 0)
-      return anchors[0].innerHTML;
-    else
-      return Rico.stripTags(el.innerHTML);
+    var s=anchors.length > 0 ? anchors[0].innerHTML : Rico.stripTags(el.innerHTML);
+    return Rico.trim(s);
   },
 
   _clear: function(gridCell) {