about summary refs log tree commit diff
path: root/src/librustdoc/html/static
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-22 07:56:42 +0100
committerGitHub <noreply@github.com>2024-01-22 07:56:42 +0100
commit6687e8e460683fa2242d8eca3da49097e39f859e (patch)
treed782f787b751610cd339d8b289b03f22c962dbc6 /src/librustdoc/html/static
parent7d7c2257d3670d3e0b1226449e5640446a11db17 (diff)
parent8b52275ee34c829a29bbb677fffd7da48d242616 (diff)
downloadrust-6687e8e460683fa2242d8eca3da49097e39f859e.tar.gz
rust-6687e8e460683fa2242d8eca3da49097e39f859e.zip
Rollup merge of #119746 - notriddle:notriddle/resize-close-modals, r=fmease
rustdoc: hide modals when resizing the sidebar

Follow-up for
https://github.com/rust-lang/rust/pull/119477#discussion_r1439085011

CC `@lukas-code`
Diffstat (limited to 'src/librustdoc/html/static')
-rw-r--r--src/librustdoc/html/static/js/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/js/main.js b/src/librustdoc/html/static/js/main.js
index 88901191cda..b46701b55ea 100644
--- a/src/librustdoc/html/static/js/main.js
+++ b/src/librustdoc/html/static/js/main.js
@@ -1721,6 +1721,7 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm
             }
             currentPointerId = e.pointerId;
         }
+        window.hideAllModals(false);
         e.preventDefault();
         window.addEventListener("pointermove", resize, false);
         window.addEventListener("pointercancel", stopResize, false);