Skip to content

Commit

Permalink
Fix floating widget from absolute to fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Nov 25, 2023
1 parent ae3cf34 commit c09ea26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/floatype.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion floatype.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function floatype(el, options = {}) {
box = document.createElement("div");
Object.assign(box.style, {
width: window.getComputedStyle(el).width,
position: "absolute",
position: "fixed",
left: `${el.offsetLeft}px`,
top: `${el.offsetTop + el.offsetHeight}px`
});
Expand Down

0 comments on commit c09ea26

Please sign in to comment.