tidy
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
30d2e61a0d
commit
13d09df7d7
3 changed files with 7 additions and 5 deletions
|
@ -20,4 +20,9 @@ limitations under the License.
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 450px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue