diff --git a/package.json b/package.json
index ac9ecb8a..148aa878 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
"svelte": "^2.16.0"
},
"dependencies": {
- "rrweb": "^0.7.25"
+ "rrweb": "^0.7.28"
},
"scripts": {
"build": "rollup -c",
diff --git a/src/Player.html b/src/Player.html
index ced35e14..777f8c41 100644
--- a/src/Player.html
+++ b/src/Player.html
@@ -1,7 +1,15 @@
@@ -40,10 +48,10 @@
height: `${height}px`,
});
},
- playerStyle({ width, height }) {
+ playerStyle({ width, height, showController }) {
return inlineCss({
width: `${width}px`,
- height: `${height + controllerHeight}px`,
+ height: `${height + showController ? controllerHeight : 0}px`,
});
},
},
@@ -77,8 +85,8 @@
skipInactive: true,
showWarning: true,
});
- replayer.on('resize', (dimension) =>
- this.updateScale(replayer.wrapper, dimension)
+ replayer.on('resize', dimension =>
+ this.updateScale(replayer.wrapper, dimension),
);
this.set({
replayer,
@@ -118,8 +126,6 @@
}
},
};
-
-
\ No newline at end of file
+