Forum
05:52
02/04/2010
The tableToGrid automatic width calculation does not work for me under Firefox 3.6.2, Safari 4.0.5 (6531.22.7), or Google Chrome 5.0.360.4 dev on OS X 10.6.3.
This is the problem is in the little chunk code starting with the comment at line 11 of tableToGrid (in grid.tbltogrid.js)
jQuery(this).width("99%");
var w = jQuery(this).width();
alert("width = "+w);
The alert, which I added, always comes up zero, no matter what formatting I apply to the source table. The original table declaration had an inline width="100%", but I've tried several other options including leaving an explicit width off entirely.
This 'w' variable is used later in setting the width of the table and, obviously, setting it to zero is not particluarly helpful; nothing is displayed.
I don't know exactly when this change was made, but this function did work for me before I just upgraded to the latest jqGrid 3.6.4. Unfortunately, I'm not sure what my prior version had been.
Can anyone confirm and, if so, where should a ticket be filed?
Thanks,
S
aka/Steve Steiner
aka/ssteinerX
12:20
Moderators
30/10/2007
Hello Steve,
First thanks for these investigations.
Also the above code is not changed since of publishing this plugin. So in order to reproduce I have used the demo New in version 3.3 => HTML Table to Grid.
I removed any other content and test with the following css changes:
1.
<style>
#mytable {width:100%;}
</style>
<table id="mytable" border="1″>
<thead>
….
2. <table id="mytable" border="1″ width="100%">
<thead>
….
3. <table id="mytable" border="1″ style="width:100%">
<thead>
In all of these 3 cases the result is the same – there is width calculated correct.
I have tested with
FF 3.5.9, FF 3.6.3 , Chrome 4.1.129 and Safary 4.0.4 on Windows XP
(Sorry, development versions like Chrome 5.0.xxx is not included into the tests – you know why)
Since I do not have OS X 10.6.3., I can not reproduce the bug.
Could you please send a link to the problem?
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
79 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66