Skip to content

Commit

Permalink
Fix the height of form edit modal in case recrateForm is false
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Mar 16, 2014
1 parent 9037483 commit a0b82ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/grid.formedit.js
Expand Up @@ -1075,11 +1075,15 @@ $.jgrid.extend({
modal:p.modal,
overlayClass: p.overlayClass,
onHide : function(h) {
var fh = $('#editmod'+gID)[0].style.height;
if(fh.indexOf("px") > -1 ) {
fh = parseFloat(fh);
}
$($t).data("formProp", {
top:parseFloat($(h.w).css("top")),
left : parseFloat($(h.w).css("left")),
width : $(h.w).width(),
height : $(h.w).height(),
height : fh,
dataheight : $("#"+frmgr).height(),
datawidth: $("#"+frmgr).width()
});
Expand Down

0 comments on commit a0b82ac

Please sign in to comment.