Skip to content

Commit bc99727

Browse files
evinmaBuptStEve
authored andcommitted
fix(android): set body.style.height to auto (#24)
* fix(android): set body style height of auto on lock * chore: ignore package-lock.json
1 parent 803e399 commit bc99727

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules
66
docs/.vuepress/dist/
77

88
yarn.lock
9+
package-lock.json

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tua-body-scroll-lock",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "🔐Body scroll locking that just works with everything",
55
"main": "dist/tua-bsl.umd.js",
66
"module": "dist/tua-bsl.esm.js",

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const setOverflowHiddenMobile = () => {
6060

6161
$body.style.top = `-${scrollTop}px`
6262
$body.style.width = '100%'
63+
$body.style.height = 'auto'
6364
$body.style.position = 'fixed'
6465
$body.style.overflow = 'hidden'
6566

0 commit comments

Comments
 (0)