Skip to content

Commit 9b3e29e

Browse files
committed
修改jsdoc search不能输入的bug
1 parent dcfccd0 commit 9b3e29e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build/jsdocs/template/static/scripts/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
$(function () {
22
$('.navigationDiv').load("nav.html .main-sidebar", null, function () {
3+
var height=$('.sidebar').height();
4+
$('.main-sidebar #categories').css('height',height-50+'px');
35
// Search Items
46
$('#searchBox').on('keyup', function (e) {
57

build/jsdocs/template/tmpl/navigation.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function buildLi(obj){
148148
<div class="search">
149149
<input id="searchBox" type="text" class="form-control input-sm" placeholder="Search Documentations">
150150
</div>
151-
<div style='width: 100%;position: absolute;top: 0px;bottom: 0px;left: 0px;padding-top:50px;height:100%'>
151+
<div style='width: 100%;position: absolute;top: 0px;bottom: 0px;left: 0px;margin-top:50px;height:100%' id='categories'>
152152
<div style='height:100%;overflow:auto'>
153153
<ul class="sidebar-menu tree list" data-widget='tree'>
154154
<?js

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy