mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: integration tests / refresh menu position properly
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
1a83e0abb3
commit
3f01d2617a
@ -144,7 +144,7 @@ export class Menu extends React.Component<MenuProps, State> {
|
||||
}
|
||||
}
|
||||
|
||||
refreshPosition = () => {
|
||||
refreshPosition = () => requestAnimationFrame(() => {
|
||||
if (!this.props.usePortal || !this.opener || !this.elem) {
|
||||
return;
|
||||
}
|
||||
@ -187,7 +187,7 @@ export class Menu extends React.Component<MenuProps, State> {
|
||||
left: renderMenuLeft ? menuOnLeftSidePosition : menuOnRightSidePosition,
|
||||
},
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
open() {
|
||||
if (this.isOpen) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user