Botframework - resize bot chat in width [duplicate]

会有一股神秘感。 提交于 2019-12-24 04:28:06

问题


Is it possible to resize the width of the chat for botframework ? Currently I'm testing on a emulator. Basically I want make my bot chat wider to the right. As you can see in the picture, the chat width remain the same despite me increasing the size of the columns, add more columns, and so on. Currently using adaptive card.


回答1:


If you are using the iframe embed, you can edit the width of the iframe HTML element by adding the style in-line:

<div id="bot">
<iframe src="https://webchat.botframework.com/embed/..." 
        style="height: 600px; width: 500px; resize: both;">
</iframe>

Alternatively, if you want greater control you can edit the styling directly to the Web Chat source code -

Customizing Web Chat



来源:https://stackoverflow.com/questions/45293477/botframework-resize-bot-chat-in-width

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!