I'm using setColumnHeader() to change a column header in the grid after it has been rendered. The header is changed to the new text but all of the splitters are moved to the left side of the header row. I worked around this by calling updateSplitters() after updating the header.
This is the code I'm currently using (it breaks if updateSplitters is not called):
function MapperGrid_onHeaderClick (g, columnIdx, e) {
this.getColumnModel().setColumnHeader(columnIdx, "This is the new header");
this.getView().updateSplitters();
}
This bug occurs in FireFox 2.0.0.3/Ubuntu 6.10. I have not checked other browsers yet.
Perhaps onHeaderChange should be modified to call updateSplitters (just a possibility, I haven't tested this): SAS Data Integration Studio 3.4: User's Guide:: File Format: PDF/Adobe Acrobatfile. Break lines and metadata for these columns are set. You might need to resize the horizontal borders of the panes to see all three of http://support.sas.com/documentation/onlinedoc/etls/usage34.pdfHOME | 4D View:: File Format: PDF/Adobe AcrobatGröße anpassen: Die Ereignisse pv on column resize und pv on row resize werden Der Befehl PV SET COLUMN HEADER setzt Titel für die angegebene Spalte. http://ftp://ftp.de.4d.com/Dokumentation/4D_View_2004.6_Programm.pdfHOME |
--- GridView.js 2007-05-01 07:22:22.000000000 -0600
+++ GridView.js.new 2007-05-14 16:29:07.000000000 -0600
@@ -196,6 +196,7 @@
},
onHeaderChange : function(){
this.updateHeaders.apply(this, arguments);
+ this.updateSplitters.apply(this, arguments);
},
onHiddenChange : function(){
this.handleHiddenChange.apply(this, arguments);
Thanks,
Shane Corgatelli
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home
|