diff --git a/src/components/structures/ContextualMenu.js b/src/components/structures/ContextualMenu.js index c6f8e32b11..bf63227283 100644 --- a/src/components/structures/ContextualMenu.js +++ b/src/components/structures/ContextualMenu.js @@ -72,11 +72,20 @@ module.exports = { 'mx_ContextualMenu_right': !props.left, }); + var menuSize = {}; + if (props.menuWidth) { + menuSize.width = props.menuWidth; + } + + if (props.menuHeight) { + menuSize.height = props.menuHeight; + } + // FIXME: If a menu uses getDefaultProps it clobbers the onFinished // property set here so you can't close the menu from a button click! var menu = (
-
+
{chevron}
diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index 13b20118e3..a500f18cb1 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -87,6 +87,8 @@ module.exports = React.createClass({ var y = (elementRect.top + (elementRect.height / 2) + window.pageYOffset) - 43; var self = this; ContextualMenu.createMenu(Menu, { + menuWidth: 188, + menuHeight: 126, chevronOffset: 35, left: x, top: y,