dmitrizzle / chat-bubble

Simple chatbot UI for the Web with JSON scripting 👋🤖🤙
MIT License
579 stars 171 forks source link

zero-width for bubbles in iFrame context #87

Closed dmitrizzle closed 1 year ago

dmitrizzle commented 3 years ago

I am using your chatbubble. I notice that when I use it in a frame, the width of the say bubble reduces (see link https://ibb.co/kVn3Fdr ). I also notice that bubbleContent.offsetWidth in bubble.js for "say" is zero when i test it. This problem does not happen when running chat bubble outside of the frame and on a standalone. Can you assist me here? What do i need to adjust to fix this issue? Here is the link to screenshot: https://ibb.co/kVn3Fdr

Originally posted by @eokwara in https://github.com/dmitrizzle/chat-bubble/issues/57#issuecomment-652612424

dmitrizzle commented 3 years ago

Hey @eokwara, sorry your original comment got hidden by GitHub so I never got to see it until now. If you can provide me a working code sample (i.e. JSFiddle or similar), I would be better equipped to tell what may be going wrong.

dmitrizzle commented 1 year ago

Same as #88 , I decided to drop support for <iframe /> in this app. Instead, you should render HTML you have full control over on the app.