regression breaking colors in canvas-based widgets
This commit is contained in:
parent
4dc6b46145
commit
c90fec4285
2 changed files with 3 additions and 2 deletions
|
|
@ -1,9 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 1.10.1
|
||||
## 1.10.2
|
||||
|
||||
- bug fixes
|
||||
- certificate expiration issue
|
||||
- regression breaking colors in canvas-based widgets
|
||||
|
||||
## 1.10.0
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ class Canvas extends Widget {
|
|||
|
||||
var val = style.getPropertyValue(data.css).trim()
|
||||
|
||||
if (typeof val === 'string' && val.includes('(')) {
|
||||
if (typeof val === 'string' && val.match(/(var|calc)\(/)) {
|
||||
// property not computed because of calc() or var() in user style
|
||||
// -> attempt to force calculation
|
||||
var dummy = html`<div style="position:absolute;width:var(${data.css})"></div>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue