Skip to content

Commit

Permalink
【fix】修复doc搜索问题
Browse files Browse the repository at this point in the history
  • Loading branch information
songyumeng committed Nov 13, 2024
1 parent a7abcfa commit 24b4b5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions build/jsdocs/template/static/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$(function () {
$('.navigationDiv').load("nav.html .main-sidebar", null, function () {
// var height = $('.sidebar').height();
// $('.main-sidebar #categories').css('height', height - 72 + 'px');
var height = $('.sidebar').height();
$('.main-sidebar #categories').css('height', height - 125 + 'px');
// Search Items
$('#searchBox').on('keyup', function (e) {

Expand Down Expand Up @@ -99,8 +99,8 @@ $(function () {
})

});
// $(window).resize(function () {
// var height = $('.navigationDiv .sidebar').height();
// $('.main-sidebar #categories').css('height', height - 72 + 'px');
// })
$(window).resize(function () {
var height = $('.navigationDiv .sidebar').height();
$('.main-sidebar #categories').css('height', height - 125 + 'px');
})
});
2 changes: 1 addition & 1 deletion build/jsdocs/template/tmpl/navigation.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function buildLi(obj){
<input id="searchBox" type="text" class="form-control input-sm" placeholder="Search Documentations">
<div class="split-line"></div>
</div>
<div style='width: 100%;position: absolute;top: 0px;bottom: 0px;left: 0px;padding-top:125px;height:100%' id='categories'>
<div style='width: 100%;position: absolute;top: 0px;bottom: 0px;left: 0px;margin-top:125px;height:100%' id='categories'>
<div style='height:100%;overflow:auto'>
<ul class="sidebar-menu tree list" data-widget='tree'>
<?js
Expand Down

0 comments on commit 24b4b5b

Please sign in to comment.