I need to use the jquery layout in a bootstrap dialog .I have tried using the jquery layout in a simple example and it works : Simple_Example but when I use it in a dialog it does not seem to work.
The jsfiddle for it : Dialog with layout.
My HTML:
<a href="#" class="btn btn-default" id="openBtn">Open modal</a>
<div class="modal fade hide" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-header">
<h3>Modal header</h3>
</div>
<div class="modal-body">
<div id="content">
<div class="ui-layout-center">Center</div>
<div class="ui-layout-west">West</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
JS:
$('#openBtn').click(function(){
$('#content').layout({ applyDefaultStyles: true });
$('#myModal').modal({show:true})
});
CSS:
#content{
height:200px;
}