Skip to content

Commit 700515c

Browse files
committed
Add some comments.
1 parent e36d972 commit 700515c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/components/views/context_menus/GenericElementContextMenu.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,19 @@ limitations under the License.
1919
import React from 'react';
2020
import PropTypes from 'prop-types';
2121

22+
/*
23+
* This component can be used to display generic HTML content in a contextual
24+
* menu.
25+
*/
26+
27+
2228
export default class GenericElementContextMenu extends React.Component {
2329
static PropTypes = {
2430
element: PropTypes.element.isRequired,
31+
// Function to be called when the parent window is resized
32+
// This can be used to reposition or close the menu on resize and
33+
// ensure that it is not displayed in a stale position.
34+
onResize: PropTypes.func,
2535
};
2636

2737
constructor(props) {

0 commit comments

Comments
 (0)