medium-draft
medium-draft copied to clipboard
+ side button doesn't go to the new line when insert embed video

So as you can see in the image above, the + button remains at the top of the video when you insert it instead of going down to the new line where it should be. This image is taken from the demo example in the repository so I suppose this is a bug to fix.
Do you have any idea about how to solve it? Or are you already working on it?
Congratulations for the great job you're doing! :)
This is a known issue. This occurs because as the embed loads, it's height change is not noticed by the button and it remains at its position. If you press enter again the button will change position correctly. Will have to have a workaround to fix this issue.
Ok, perfect. But I've just noticed that the demo do something strange in Chrome, when you click the + button, the view goes to the top of the page losing where it was. Did you know anything about it?
+1 Is there any way I can prod the button to update programmatically? I receive the an event once the video is fully loaded so I could just launch a callback which could trigger the button position update. Is there anything in place that could let me do that?
@d-baranowski You can call foreUpdate
method of your component to rerender.