Problem with RGraph in Firefox

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Shastry on 6th May 2013
Hello,

I have a 'div'(consider its 'id' is 'main') which is containing some combo box etc etc.

below that div, i hav another div, within that i hav canvas, within that im having my rgraph.

So, when rgraph gets drawn, and when i click on the 'main' div

The following style is getting appending to that main div.
style="position: relative; top: 0px; left: 0px;"

because of this that whole div elements are coming down.

Why is this happening?

Its working fine with Chrome, but not with firefox.

No overriding of css is happening.

Please help.
Posted by RGraph support on 6th May 2013
Hi there,

I don't know what you mean by 'coming down'. Try linking to an example page. However if it's only happening in Firefox it may be a Firefox specific issue. Try it in Safari, IE and Opera.



Richard, RGraph Support

5 developer license with Priority support for £299:
   www.rgraph.net/license#five-developer
Posted by Shastry on 6th May 2013
Thanks. But i fixed it. Its due to these lines. I commented it. Working fine now.

Give the canvas position if it has none
            /* if (!ca.style.position) {
                 ca.style.position = 'relative';
                 ca.style.top = 0;
                 ca.style.left = 0;
             }*/
Posted by Corina on 20th May 2013
It is even better if instead of commenting the code, you just check that those styles are only added to the canvas element:

             if (ca.tagName.toLowerCase() == "canvas" && !ca.style.position) {
                 ca.style.position = 'relative';
                 ca.style.top = 0;
                 ca.style.left = 0;
             }
Posted by RGraph support on 20th May 2013
Hi Corina,

That code has actually been removed now - though it may just be in beta releases.



Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support

Add a reply




« Back to message list