remove flipFallback(Placement|Strategy) as we get a better/working placement without

now clicks close to right end of the window open to the left (and not outside as before)
This commit is contained in:
ralf 2024-08-13 15:53:00 +02:00
parent f465d201ae
commit 5ea8f27d9d

View File

@ -120,8 +120,6 @@ export class EgwMenuShoelace extends LitElement
placement: "right-start",
autoSize: "vertical",
flip: true,
flipFallbackPlacements: "right-end",
flipFallbackStrategy: "initial",
shift: true
});
this.popup.append(this);
@ -134,7 +132,7 @@ export class EgwMenuShoelace extends LitElement
return {
x: _x,
y: _y,
width: 0, //menu.clientWidth,
width: 0, // placement="right-start" only works well with 0, not menu.clientWidth,
height: menu.clientHeight,
top: _y,
left: _x,