Skip to content

Commit

Permalink
Fix palette row wrapping in Firefox when loaded in an iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed Aug 8, 2021
1 parent b33b4a9 commit 26d9af9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programs/jspaint/src/$ColorBox.js
Expand Up @@ -136,6 +136,7 @@ function $ColorBox(vertical){

build_palette();
$(window).on("theme-change", build_palette);
$(window).on("load", ()=> setTimeout(build_palette, 0)); // fix for Firefox when loaded in an iframe

$c.rebuild_palette = build_palette;

Expand Down

0 comments on commit 26d9af9

Please sign in to comment.