Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Sep 19, 2024
1 parent 9afe490 commit dde1b21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asanai.js
Original file line number Diff line number Diff line change
Expand Up @@ -5426,7 +5426,11 @@ class asanAI {
for (let i = 0; i < numCategories; i++) {
var canvas = document.createElement("canvas");
var relationScale = 1;
var pw = this.#parse_int($("#visualization").width() * relationScale);
var visualization_width = $("#visualization").width();
if(!visualization_width) {
visualization_width = window.innerWidth
}
var pw = this.#parse_int(visualization_width * relationScale);
var w = this.#parse_int(pw / (numCategories + 1));


Expand Down

0 comments on commit dde1b21

Please sign in to comment.