Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit332c2ce

Browse files
Merge pull request#234 from ContentsViewer/pre
bug fix
2 parents06393aa +d7cd939 commit332c2ce

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

‎Client/ContentsViewer/ContentsViewer.js‎

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ ContentsViewer.private.setupOutline = () => {
135135
return;
136136
}
137137

138-
if(cv.elements.contentBody.children.length==0){
139-
return;
140-
}
141-
142138
vardocOutlineNavi=cv.elements.rightColumn.getElementsByClassName("navi")?.[0];
143139
if(!docOutlineNavi){
144140
return;
@@ -149,19 +145,21 @@ ContentsViewer.private.setupOutline = () => {
149145
varnavWrapper=document.querySelector("#doc-outline-embeded>.nav-wrapper");
150146
navWrapper.appendChild(naviEmbeded);
151147

152-
if((cv.private.createSectionTreeHelper(
153-
cv.elements.contentBody,docOutlineNavi,0,
154-
cv.private.sectionListInColumn,
155-
cv.private.sectionListInMainContent))!=0){
156-
docOutlineNavi.removeChild(docOutlineNavi.firstChild);
157-
}
148+
if(cv.elements.contentBody.children.length!=0){
149+
if((cv.private.createSectionTreeHelper(
150+
cv.elements.contentBody,docOutlineNavi,0,
151+
cv.private.sectionListInColumn,
152+
cv.private.sectionListInMainContent))!=0){
153+
docOutlineNavi.removeChild(docOutlineNavi.firstChild);
154+
}
158155

159-
if((cv.private.createSectionTreeHelper(
160-
cv.elements.contentBody,naviEmbeded,0,
161-
[],[]))!=0){
162-
naviEmbeded.removeChild(naviEmbeded.firstChild);
156+
if((cv.private.createSectionTreeHelper(
157+
cv.elements.contentBody,naviEmbeded,0,
158+
[],[]))!=0){
159+
naviEmbeded.removeChild(naviEmbeded.firstChild);
160+
}
163161
}
164-
162+
165163
varlistItems=naviEmbeded.getElementsByTagName("li");
166164
varmaxVisibleCount=5;
167165
for(vari=0,loop=Math.min(maxVisibleCount,listItems.length);i<loop;i++){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp