From 700515cce34b06e0d9f470f189cd5a56a1469520 Mon Sep 17 00:00:00 2001
From: Richard Lewis <richard@smetco.co.uk>
Date: Mon, 26 Mar 2018 11:48:29 +0100
Subject: [PATCH] Add some comments.

---
 .../views/context_menus/GenericElementContextMenu.js   | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/components/views/context_menus/GenericElementContextMenu.js b/src/components/views/context_menus/GenericElementContextMenu.js
index 4ae0bfd7..3f4804db 100644
--- a/src/components/views/context_menus/GenericElementContextMenu.js
+++ b/src/components/views/context_menus/GenericElementContextMenu.js
@@ -19,9 +19,19 @@ limitations under the License.
 import React from 'react';
 import PropTypes from 'prop-types';
 
+/*
+ * This component can be used to display generic HTML content in a contextual
+ * menu.
+ */
+
+
 export default class GenericElementContextMenu extends React.Component {
     static PropTypes = {
         element: PropTypes.element.isRequired,
+        // Function to be called when the parent window is resized
+        // This can be used to reposition or close the menu on resize and
+        // ensure that it is not displayed in a stale position.
+        onResize: PropTypes.func,
     };
 
     constructor(props) {