Modify ↓
Opened 12 years ago
Closed 12 years ago
#10148 closed defect (fixed)
offset between left and right part of chart table in Internet Explorer
Reported by: | falkb | Owned by: | Chris Nelson |
---|---|---|---|
Priority: | normal | Component: | TracJsGanttPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
The tickets bars are more above than their description. See the screenshot. Seen with IE 9, Firefox 13 has no problems. Seems it's reasoned by different table cell or font heights, though I don't know where to fix it.
Attachments (1)
Change History (6)
Changed 12 years ago by
Attachment: | rowheightbug.PNG added |
---|
comment:2 Changed 12 years ago by
Summary: | left and right part of chart table use different row heights in IE → offset between left and right part of chart table in Internet Explorer |
---|
comment:3 Changed 12 years ago by
This one should help:
-
tracjsganttplugin/0.11/tracjsgantt/htdocs/jsgantt.js
1184 1184 } 1185 1185 1186 1186 if (vFormatArr.join().indexOf("quarter")!=-1) { 1187 if (vFormat=='quarter') vLeftTable += '<INPUT TYPE=RADIO NAME="radFormat_'+vGanttVar+'" VALUE="quarter" checked>Q uarter';1188 else vLeftTable += '<INPUT TYPE=RADIO NAME="radFormat_'+vGanttVar+'" onclick=JSGantt.changeFormat("quarter",'+vGanttVar+') VALUE="quarter">Q uarter';1187 if (vFormat=='quarter') vLeftTable += '<INPUT TYPE=RADIO NAME="radFormat_'+vGanttVar+'" VALUE="quarter" checked>Qtr.'; 1188 else vLeftTable += '<INPUT TYPE=RADIO NAME="radFormat_'+vGanttVar+'" onclick=JSGantt.changeFormat("quarter",'+vGanttVar+') VALUE="quarter">Qtr.'; 1189 1189 } 1190 1190 1191 1191 // vLeftTable += '<INPUT TYPE=RADIO NAME="other" VALUE="other" style="display:none"> .'; … … 1201 1201 if(vShowRes ==1) vLeftTable += ' <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>Resource</TD>' ; 1202 1202 if(vShowDur ==1) vLeftTable += ' <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>Duration</TD>' ; 1203 1203 if(vShowComp==1) vLeftTable += ' <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>% Comp.</TD>' ; 1204 if(vShowStartDate==1) vLeftTable += ' <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 6 0px; HEIGHT: 20px" align=center nowrap>Start Date</TD>' ;1204 if(vShowStartDate==1) vLeftTable += ' <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 65px; HEIGHT: 20px" align=center nowrap>Start Date</TD>' ; 1205 1205 if(vShowEndDate==1) vLeftTable += ' <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>End Date</TD>' ; 1206 1206 1207 1207 vLeftTable += '</TR>'; … … 1274 1274 // Draw the Chart Rows 1275 1275 vRightTable = 1276 1276 '<DIV class=scroll2 id=rightside_'+pGanttVar+'>' + 1277 '<TABLE style="width: ' + vChartWidth + 'px;" cellSpacing=0 cellPadding=0 border=0>' + 1278 '<TBODY><TR style="HEIGHT: 18px">'; 1277 '<TABLE style="width: ' + vChartWidth + 'px;" cellSpacing=0 cellPadding=0 border=0>'; 1278 if (JSGantt.isIE()) { // IE; 1279 vRightTable += '<TBODY><TR style="HEIGHT: 25px">'; 1280 } else { 1281 vRightTable += '<TBODY><TR style="HEIGHT: 18px">'; 1282 } 1279 1283 1280 1284 vTmpDate.setFullYear(vMinDate.getFullYear(), vMinDate.getMonth(), vMinDate.getDate()); 1281 1285 vTmpDate.setHours(0);
Abbreviation "Qtr." is because of a bad line break because the words are too long in IE.
P.S.: Note, there are also these ones adressing the problem: http://code.google.com/p/jsgantt/issues/detail?id=61&sort=type http://code.google.com/p/jsgantt/issues/detail?id=54&sort=type
comment:4 Changed 12 years ago by
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.