Skip to content

Commit 8bb6bac

Browse files
Merge branch 'dev' into patch-1
2 parents b55d32e + 3002832 commit 8bb6bac

File tree

3 files changed

+152
-155
lines changed

3 files changed

+152
-155
lines changed

packages/uikit-workshop/src/scripts/lit-components/pl-viewport-size/pl-viewport-size.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ class ViewportSize extends BaseLitComponent {
4848

4949
updated() {
5050
if (this.viewport && this.viewport.bodySize) {
51-
this.em = Math.floor(this.px - 40 * this.bodySize);
51+
this.em = Math.floor(this.px * this.bodySize);
5252
}
5353
}
5454

5555
render() {
5656
if (!window.__PRERENDER_INJECTED) {
5757
return html`
5858
<form class="pl-c-viewport-size" method="post" action="#">
59-
<span class="pl-c-viewport-size__input">${this.px - 40}px</span
59+
<span class="pl-c-viewport-size__input">${this.px}px</span
6060
>&nbsp;/&nbsp;
6161
<span class="pl-c-viewport-size__input">${this.em}em</span>
6262
</form>

0 commit comments

Comments
 (0)