Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-09-28 11:59:39 +01:00
parent 30d2e61a0d
commit 13d09df7d7
3 changed files with 7 additions and 5 deletions

View file

@ -20,4 +20,9 @@ limitations under the License.
margin-left: 8px; margin-left: 8px;
} }
} }
iframe {
width: 100%;
height: 450px;
}
} }

View file

@ -121,14 +121,11 @@ export default class ModalWidgetDialog extends React.PureComponent<IProps, IStat
className="mx_ModalWidgetDialog" className="mx_ModalWidgetDialog"
contentId="mx_Dialog_content" contentId="mx_Dialog_content"
onFinished={this.props.onFinished} onFinished={this.props.onFinished}
hasCancel={false}
> >
<div> <div>
<iframe <iframe
ref={this.appFrame} ref={this.appFrame}
// sandbox="allow-forms allow-scripts" // sandbox="allow-forms allow-scripts" TODO
width={700} // TODO
height={450} // TODO
src={widgetUrl.toString()} src={widgetUrl.toString()}
onLoad={this.onLoad} onLoad={this.onLoad}
/> />

View file

@ -147,7 +147,7 @@ export class WidgetApi extends EventEmitter {
this.replyToRequest(<ToWidgetRequest>payload, {}); this.replyToRequest(<ToWidgetRequest>payload, {});
break; break;
// Ack, handle by caller // Ack, handled by caller
case KnownWidgetActions.Terminate: case KnownWidgetActions.Terminate:
case KnownWidgetActions.ButtonClicked: case KnownWidgetActions.ButtonClicked:
case KnownWidgetActions.GetWidgetConfig: case KnownWidgetActions.GetWidgetConfig: