Browse Source

prevent table head on sub tables

Nicolas Cannasse 6 years ago
parent
commit
8a8701dd02
1 changed files with 4 additions and 2 deletions
  1. 4 2
      hide/comp/cdb/Table.hx

+ 4 - 2
hide/comp/cdb/Table.hx

@@ -170,8 +170,10 @@ class Table extends Component {
 			element.append(l);
 			element.append(l);
 		}
 		}
 
 
-		cols.ready(cloneTableHead);
-		cols.on("resize", cloneTableHead);
+		if( sheet.parent == null ) {
+			cols.ready(cloneTableHead);
+			cols.on("resize", cloneTableHead);
+		}
 	}
 	}
 
 
 	function makeSeparator( sindex : Int, colCount : Int ) {
 	function makeSeparator( sindex : Int, colCount : Int ) {