Skip to content

Commit 61fa3d8

Browse files
committed
maint(pat scroll box): Improve demo styles.
1 parent 52f4343 commit 61fa3d8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/pat/scroll-box/index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
height: 200vh;
1616
}
1717

18+
.container {
19+
/**
20+
* trick to espatblish a relative containing block
21+
* for position:fixed
22+
* See: https://developer.mozilla.org/en-US/docs/Web/CSS/position#fixed
23+
*/
24+
transform: rotate(0);
25+
}
26+
1827
body .pat-scroll-box {
1928
overflow-y: auto;
2029
border: 1px solid black;
@@ -49,8 +58,10 @@
4958
</style>
5059
</head>
5160
<body class="pat-scroll-box">
61+
<div class="container">
5262
<div class="pat-scroll-box">
53-
<div class="pat-scroll-box--inner">hello.</div>
63+
<div class="pat-scroll-box--inner">hello.</div>
5464
</div>
65+
</div>
5566
</body>
5667
</html>

0 commit comments

Comments
 (0)