Skip to content

Commit

Permalink
Fix header slides code
Browse files Browse the repository at this point in the history
  • Loading branch information
luap42 committed Apr 15, 2020
1 parent 610fb46 commit 1d2444c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/assets/js/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ for (let i = 0; i < headerSlideTriggers.length; i++) {
// Position header slide appropriately relative to
// trigger.
const rect = this.getBoundingClientRect();
hs.style.top = (rect.top + rect.height) + "px";
hs.style.right = (document.body.clientWidth - rect.right) + "px";
headerSlide.style.top = (rect.top + rect.height) + "px";
headerSlide.style.right = (document.body.clientWidth - rect.right) + "px";

// Prevent navigation
e.preventDefault();
Expand Down
4 changes: 2 additions & 2 deletions docs/components.header.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ <h5 id="slides-example">Example</h5>
// Position header slide appropriately relative to
// trigger.
const rect = this.getBoundingClientRect();
hs.style.top = (rect.top + rect.height) + "px";
hs.style.right = (document.body.clientWidth - rect.right) + "px";
headerSlide.style.top = (rect.top + rect.height) + "px";
headerSlide.style.right = (document.body.clientWidth - rect.right) + "px";

// Prevent navigation
e.preventDefault();
Expand Down

0 comments on commit 1d2444c

Please sign in to comment.