kopia lustrzana https://github.com/ertdfgcvb/play.core
Update run.js
rodzic
523e4f43f0
commit
9312b6c080
|
@ -417,7 +417,7 @@ function getCSSInfo(el){
|
|||
// Returns an immutable (frozen) object.
|
||||
|
||||
export function calcMetrics(el) {
|
||||
const style = window.getComputedStyle(el)
|
||||
const style = getComputedStyle(el)
|
||||
|
||||
const fontFamily = style.getPropertyValue('font-family')
|
||||
const lineHeight = parseFloat(style.getPropertyValue('line-height'))
|
||||
|
|
Ładowanie…
Reference in New Issue