Skip to content

Commit

Permalink
Fix box sizing on examples
Browse files Browse the repository at this point in the history
Using width:100% and padding without proper box-sizing causes elements to overflow on mobile, enabling overscroll-behavior in the X direction.
  • Loading branch information
XanderLuciano committed Oct 12, 2018
1 parent 6b6efde commit 1837a4e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/misc_controls_deviceorientation.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
font-size:13px;
font-weight: bold;
text-align:center;
box-sizing: border-box;
}

a {
Expand Down
5 changes: 4 additions & 1 deletion examples/misc_controls_fly.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@
top: 0px; width: 100%;
padding: 5px;
z-index:100;
box-sizing: border-box;
}

a {

color: #0080ff;
}

b { color:orange }
b {
color:orange
}
</style>

<script src="../build/three.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/misc_controls_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
position: absolute;
top: 0px; width: 100%;
padding: 5px;

box-sizing: border-box;
}

a {
Expand Down
3 changes: 3 additions & 0 deletions examples/misc_controls_transform.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@
line-height: 30px;
overflow: hidden;
}

#info {
position: absolute;
top: 0px; width: 100%;
padding: 15px;
z-index:100;
box-sizing: border-box;
}

a {
color: white;
}
Expand Down

0 comments on commit 1837a4e

Please sign in to comment.