chimchim10 / milkchart

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

Bug with Row names #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Add a <tfoot> to a MilkChart.Column and get default row names instead of
the defined ones in the <tfoot> 

What is the expected output? What do you see instead?
Names set in <tfoot> to show as row names on grid
The Default row names of "Row 1 ... etc" 

What version of the product are you using? On what operating system?
1.1

Problem : 

Lines 337 to 341

        if (this.options.useFooter) {

this.element.getElement('tfoot').getChildren()[0].getChildren().each(function(it
em)
{
                this.rowNames.push(item.get('html'));
            }.bind(this));
        }

Replace with : 

if (this.element.getElement('tfoot')) {

this.element.getElement('tfoot').getChildren([0].getChildren().each(function(ite
m)
{
    this.rowNames.push(item.get('html'));
            }.bind(this));
        }

Original issue reported on code.google.com by ArasoiHe...@gmail.com on 22 Feb 2010 at 7:26

GoogleCodeExporter commented 9 years ago
Please use the version found on the MooTools forge 
http://mootools.net/forge/p/milkchart

Original comment by theivi...@gmail.com on 22 Feb 2010 at 7:35

GoogleCodeExporter commented 9 years ago
it is the version from the Forge :) 

Original comment by ArasoiHe...@gmail.com on 22 Feb 2010 at 10:41

GoogleCodeExporter commented 9 years ago
haha, awesome.  Ok, i'll get on it :)

Original comment by theivi...@gmail.com on 22 Feb 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Fixed on Forge

Original comment by theivi...@gmail.com on 6 Mar 2010 at 5:30