texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Per Bothner
Date: Thu, 29 Apr 2021 11:52:09 -0400 (EDT)

branch: master
commit 11473ec7f49d1954907fcd966918b9310b38d30e
Author: Per Bothner <per@bothner.com>
AuthorDate: Thu Apr 29 08:49:11 2021 -0700

    js/info.js (Sidebar.render): Fix initial rendering.
---
 ChangeLog  | 2 ++
 js/info.js | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index a96b18d..4b2e78f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2021-04-29  Per Bothner  <per@bothner.com>
 
+       * js/info.js (Sidebar.render): Fix initial rendering.
+
        * js/info.css: Style hide-sidebar buttom vertically.
 
 2021-04-28  Per Bothner  <per@bothner.com>
diff --git a/js/info.js b/js/info.js
index 07279c4..5b39c86 100644
--- a/js/info.js
+++ b/js/info.js
@@ -754,6 +754,8 @@
       let show = state.show_sidebar;
       if (show == "hide-if-narrow")
           show = is_narrow_window() || currently_showing == "no" ? "no" : 
"yes";
+      if (show === undefined)
+            show = "yes";
       if (show !== currently_showing)
         {
           document.body.setAttribute("show-sidebar", show);
@@ -1046,7 +1048,6 @@
       fix_links (document.links);
       add_icons ();
       document.body.classList.add ("mainbar");
-      document.body.setAttribute("show-sidebar", "yes");
 
       /* Move contents of <body> into a a fresh <div> to let the components
          treat the index page like other iframe page.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]