Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when using tabs in Firefox #21

Open
ncrocfer opened this issue Jun 12, 2017 · 1 comment
Open

Exception when using tabs in Firefox #21

ncrocfer opened this issue Jun 12, 2017 · 1 comment

Comments

@ncrocfer
Copy link

Hello,

I receive some exceptions with your plugin when I use it with tabs. The first panel is well rendered (if it's the active one), but not the others (which are hidden by default) :

gauge_tabs

The problem comes from line 214 :

var textWidth = dummyText.node().getBBox().width;

It seems getBBox() does not work very well in Firefox when using it inside tab panels.

This issue advises to use getBoundingClientRect() instead of getBBox(), and it works for me.

By the way thank you for this plugin !

@stherrienaspnet
Copy link
Owner

Thanks for the information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants