Skip to content

Commit

Permalink
fix(doc): ensure the documentation content doesn't overflow
Browse files Browse the repository at this point in the history
Fix #444

(includes a fix in the indentation of the HTML code as well)
  • Loading branch information
redox committed Nov 4, 2015
1 parent 848eec1 commit 1e28a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/css/_documentation.sass
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
.documentation-content
position: absolute
top: 0
left: 0
right: 0
bottom: 0
padding: 30px
overflow-y: scroll
Expand Down
2 changes: 1 addition & 1 deletion docs/js/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
source += ' ';
}
source += line + '\n';
if (line.indexOf('<') === 0 && line.indexOf('</') !== 0) {
if (line.indexOf('<') === 0 && line.indexOf('</') !== 0 && line.indexOf('<input') === -1) {
++indent;
}
});
Expand Down

0 comments on commit 1e28a4e

Please sign in to comment.