I want to put the BpmnNavigatedViewer in a modal (see http://getbootstrap.com/javascript/#modals), so basically it is embedded in
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document" style="width: 90%;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Process details</h4>
</div>
<div id="popupPanel" class="modal-body">
HERE IT COMES
<div class="content" id="bmmn-drop-zone">
<div id="bpmnCanvas" class="bpmn-io-viewer-height"></div>
</div>
...
As soon as I do this the font and some layout things are messed up:
If I put the
Any ideas?
Cheers
Bernd
Answer
You have to make sure the modal is attached to the DOM and
display != none
for label rendering to work correctly. Otherwise you see the text layouting problems you mentioned.