Comments (3)
related #11
from adminator-admin-dashboard.
The first error was solved in the last commit, the others are caused when the scale parameter of jvectormaps is NAN. I was able to find out that scale becomes NAN when the "jvectormap-container" div's width become 0px, that triggers an zero by zero division which results in NAN.
To fix this I edited the "jquery-jvectormap.min.js" file to add a verification for the zero width.
`/**
- Synchronize the size of the map with the size of the container. Suitable in situations where the size of the container is changed programmatically or container is shown after it became visible.
*/
updateSize: function(){
this.width = this.container.width();
this.height = this.container.height();
if(this.width != 0){
this.resize();
this.canvas.setSize(this.width, this.height);
this.applyTransform();
}
},`
That is just a hack, to fix it definitely we need to find why sometimes the container width becomes zero.
P.S.: I'm using jvectormap-next.
from adminator-admin-dashboard.
Thank you :)
from adminator-admin-dashboard.
Related Issues (20)
- top right corner's dropdown click event doesn't work if jquery is enabled in HTML template HOT 2
- Bootstrap 5 HOT 1
- Original author attribution HOT 2
- I need just light build version of the Menu HOT 1
- Webpack compilation issue HOT 2
- Charts added using charts.js are not animating on page load (or at any other time). HOT 1
- Uncaught TypeError: can't access property "__k", u is null HOT 1
- Unable to resolve dependencies during npm install HOT 1
- This is useless. Simple web app but too complicated to install. HOT 2
- How to add new js file
- Unable to install due to package dependencies HOT 1
- Not able to plugin to Yii2 Framworks HOT 2
- Is this still maintained? HOT 3
- Bug sidebar menu HOT 2
- Why does it need Python? HOT 3
- Need HTML version HOT 1
- Display code in quick chat
- Setup main.js for project HOT 2
- New html page has no styling HOT 2
- Change background colour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminator-admin-dashboard.