mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 05:29:17 -06:00
FIX: ensures widget dropdown doesn't overflow document (#9590)
This commit is contained in:
parent
c85018cdfd
commit
e1dbc700b1
@ -1,4 +1,5 @@
|
||||
import { createWidget } from "discourse/widgets/widget";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import hbs from "discourse/widgets/hbs-compiler";
|
||||
|
||||
/*
|
||||
@ -252,6 +253,9 @@ export const WidgetDropdownClass = {
|
||||
strategy: "fixed",
|
||||
placement: "bottom-start",
|
||||
modifiers: [
|
||||
{
|
||||
name: "preventOverflow"
|
||||
},
|
||||
{
|
||||
name: "offset",
|
||||
options: {
|
||||
@ -261,6 +265,10 @@ export const WidgetDropdownClass = {
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
schedule("afterRender", () => {
|
||||
this._popper && this._popper.update();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user