FIX: ensures widget dropdown doesn't overflow document (#9590)

FIX: ensures widget dropdown doesn’t overflow document (#9590)

diff --git a/app/assets/javascripts/discourse/app/widgets/widget-dropdown.js b/app/assets/javascripts/discourse/app/widgets/widget-dropdown.js
index c063296..8fe72d3 100644
--- a/app/assets/javascripts/discourse/app/widgets/widget-dropdown.js
+++ b/app/assets/javascripts/discourse/app/widgets/widget-dropdown.js
@@ -1,4 +1,5 @@
 import { createWidget } from "discourse/widgets/widget";
+import { schedule } from "@ember/runloop";
 import hbs from "discourse/widgets/hbs-compiler";
 
 /*
@@ -253,6 +254,9 @@ export const WidgetDropdownClass = {
         placement: "bottom-start",
         modifiers: [
           {
+            name: "preventOverflow"
+          },
+          {
             name: "offset",
             options: {
               offset: [0, 5]
@@ -261,6 +265,10 @@ export const WidgetDropdownClass = {
         ]
       });
     }
+
+    schedule("afterRender", () => {
+      this._popper && this._popper.update();
+    });
   }
 };
 

GitHub sha: e1dbc700

This commit appears in #9590 which was merged by jjaffeux.