fix(snapshot): dimensions for blocked element not being applied (#1331)
fix for replay of a blocked element when using 'fast forward' (rrdom) - Dimensions were not being properly applied when you seek to a position in the replay. Need to use `setProperty` rather than trying to set the width/height directly
This commit is contained in:
@@ -328,9 +328,9 @@ function buildNode(
|
||||
}
|
||||
|
||||
if (name === 'rr_width') {
|
||||
(node as HTMLElement).style.width = value.toString();
|
||||
(node as HTMLElement).style.setProperty('width', value.toString());
|
||||
} else if (name === 'rr_height') {
|
||||
(node as HTMLElement).style.height = value.toString();
|
||||
(node as HTMLElement).style.setProperty('height', value.toString());
|
||||
} else if (
|
||||
name === 'rr_mediaCurrentTime' &&
|
||||
typeof value === 'number'
|
||||
|
||||
Reference in New Issue
Block a user