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
res/css/views/dialogs
src
components/views/dialogs
widgets

View file

@ -20,4 +20,9 @@ limitations under the License.
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"
contentId="mx_Dialog_content"
onFinished={this.props.onFinished}
hasCancel={false}
>
<div>
<iframe
ref={this.appFrame}
// sandbox="allow-forms allow-scripts"
width={700} // TODO
height={450} // TODO
// sandbox="allow-forms allow-scripts" TODO
src={widgetUrl.toString()}
onLoad={this.onLoad}
/>

View file

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