Bug with tooltips

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 Evgeny on 15th June 2013
Hi

I have just upgrade to the latest stable version of RGraph and have a bug on Google Chrome.

My graph is shown within a modal window that has position fixed.

in the file: rgraph/RGraph.common.core.js, line 1116
you check for the offsetParent

         while (obj.tagName.toLowerCase() != 'body' && i < 99) {

             if (obj.style.position == 'fixed') {
                 return obj;
             }
            
             obj = obj.offsetParent;
         }


The problem is that my modal window returns null for obj.tagName and script breaks.
developer.mozilla.org/en-US/docs/Web/API/element.offsetParent

I guess you should check (obj && obj.tagName.toLowerCase() != 'body')
Posted by RGraph support on 16th June 2013
Hi there,

Can you put an example of it online?



Richard, RGraph support

Add a reply




« Back to message list