Merge pull request #3715 from matrix-org/t3chguy/fix_roomlist_context_menu_regression

Fix remaining context menu regressions
This commit is contained in:
Michael Telatynski
2019-12-11 09:36:45 +00:00
committed by GitHub
5 changed files with 69 additions and 45 deletions

View File

@@ -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