faheem801 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Alternate legendColorBox to make IE display consistent with Firefox #428

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed legend color boxes became taller and thinner when viewed in IE, and 
found an alternate way to achieve the same effect in both browsers based on 
info from:

http://archivist.incutio.com/viewlist/css-discuss/39150

jquery.flot.js line 1741 old:
                    '<td class="legendColorBox"><div style="border:1px solid ' + options.legend.labelBoxBorderColor + ';padding:1px"><div style="width:4px;height:0;border:5px solid ' + s.color + ';overflow:hidden"></div></div></td>' +

jquery.flot.js line 1741 new:
                    '<td class="legendColorBox"><div style="border:1px solid ' + options.legend.labelBoxBorderColor + ';padding:1px"><div style="width:14px;height:10px;background:' + s.color + '"></div><!-- --></div></td>' +

Original issue reported on code.google.com by myc...@gmail.com on 19 Oct 2010 at 7:01

GoogleCodeExporter commented 9 years ago
patch file for r267

Original comment by myc...@gmail.com on 10 Nov 2010 at 10:59

Attachments:

GoogleCodeExporter commented 9 years ago
Hi!

That's what I used to do. But as it turns out, background colors don't work 
with printing. So I'm going to wontfix this. If you have another suggestion, 
feel free to post again.

Original comment by olau%iol...@gtempaccount.com on 14 Dec 2010 at 10:04

GoogleCodeExporter commented 9 years ago
Issue 429 has been merged into this issue.

Original comment by olau%iol...@gtempaccount.com on 14 Dec 2010 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:41