Merge pull request #3715 from matrix-org/t3chguy/fix_roomlist_context_menu_regression
Fix remaining context menu regressions
This commit is contained in:
commit
cb50f5ff5f
5 changed files with 69 additions and 45 deletions
|
@ -419,7 +419,7 @@ export const toRightOf = (elementRect, chevronOffset=12) => {
|
|||
const left = elementRect.right + window.pageXOffset + 3;
|
||||
let top = elementRect.top + (elementRect.height / 2) + window.pageYOffset;
|
||||
top -= chevronOffset + 8; // where 8 is half the height of the chevron
|
||||
return {left, top};
|
||||
return {left, top, chevronOffset};
|
||||
};
|
||||
|
||||
// Placement method for <ContextMenu /> to position context menu right-aligned and flowing to the left of elementRect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue