Merge pull request #55 from OptimistikSAS/issues/37

#37 Clicking anywhere on the bottom bar open color popup
This commit is contained in:
JFH
2021-01-07 13:18:54 +01:00
committed by GitHub

View File

@@ -10,7 +10,7 @@ class PaintBox {
constructor (container, type) {
// set up gradients to be used for the buttons
const svgdocbox = new DOMParser().parseFromString(
`<svg xmlns="http://www.w3.org/2000/svg">
`<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22">
<rect
fill="#000000" opacity="1" width="22" height="22"/>
<defs><linearGradient id="gradbox_${PaintBox.ctr++}"/></defs>