I have a view containg 2 search forms:
<div class="row cols-container">
<div class="col-sm-6 col">
<div class="panel>
<div class="panel-body">
{{=labelform:}}
</div> <!-- /.panel-body -->
</div> <!-- /.panel -->
</div> <!-- /.col-sm-6 -->
<div class="col-sm-6 col">
<div class="panel>
<div class="panel-body">
{{=nameform:}}
</div> <!-- /.panel-body -->
</div> <!-- /.panel -->
</div> <!-- /.col-sm-6 -->
</div> <!-- /.row -->
In layout.html I call the matchHeight function to make the panels equal in
height.
<script type="text/javascript">
$(document).ready(function(){
$(function() {$('.cols-container').each(function()
{$(this).children('.col').matchHeight();});});
$('#search').dataTable( {
"fnDrawCallback": function() {$('.cols-container').each(function()
{$(this).children('.col').matchHeight();});}
});
});
</script>
When a form contains errors the form height exceeds the panel height.
dataTables has fnDrawCallback
which I use to re-call matchHeight. Does web2py have something similar to
re-call matchHeight in case
a form contains errors.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.