miunsi63 / gflot

Automatically exported from code.google.com/p/gflot
0 stars 0 forks source link

LegendOptions may cause problem in IE #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.plotOptions.setLegendOptions(new 
LegendOptions().setContainer(vPanel.getElement()));(vPanel is VerticalPanel)

What is the expected output? What do you see instead?
The legend will appear in vPanel.
Nothing in vPanel.

What version of the product are you using? On what operating system?
GFlot 2.4.0
IE6
XP SP3

Please provide any additional information below.
The problem only occur in IE6.
Chrome and FF performance normal.
But I don't test in IE7,IE8,IE9.

Original issue reported on code.google.com by ODMar...@gmail.com on 28 Mar 2012 at 9:06

GoogleCodeExporter commented 9 years ago
The problem is the VerticalPanel. VerticalPanel is a table. When using a 
container for the legend, flot delete all the content of the given element and 
replace it with the legend. When you give it a table element, the dom looks 
like :
<table id="myVerticalPanel">
  <table id="legend">...</table>
</table>

It seems that IE6 is not able to read that. It's even surprising that the 
others browsers accept it. 

So just use a div based panel like SimplePanel, FlowPanel or HTMLPanel. 

Original comment by nmr.morel on 29 Mar 2012 at 8:28

GoogleCodeExporter commented 9 years ago
Thanks for your help.

Original comment by ODMar...@gmail.com on 30 Mar 2012 at 8:57

GoogleCodeExporter commented 9 years ago

Original comment by nmr.morel on 31 Mar 2012 at 10:05