| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,8 +41,6 @@ | |||
| 41 | 41 | // Add nav entry. | |
| 42 | 42 | var anchor = $("<a href='#" + ctor.jsClassName + "'><li>" + ctor.jsClassName + "</li><ul class='subnav'></ul></a>").appendTo(scrollable); | |
| 43 | 43 | ||
| 44 | - scrollable.height($("html").innerHeight() - 160); | ||
| 45 | - | ||
| 46 | 44 | // Add new content. | |
| 47 | 45 | var contentOutput = contentTemplate.render(ctor); | |
| 48 | 46 | ||
@@ -54,6 +52,12 @@ | |||
| 54 | 52 | }); | |
| 55 | 53 | }); | |
| 56 | 54 | ||
| 55 | + scrollable.height($("html").innerHeight() - 160); | ||
| 56 | + | ||
| 57 | + $(window).on("resize", function() { | ||
| 58 | + scrollable.height($("html").innerHeight() - 160); | ||
| 59 | + }); | ||
| 60 | + | ||
| 57 | 61 | // Highlight the new code blocks. | |
| 58 | 62 | Prism.highlightAll(); | |
| 59 | 63 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments