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