AAVL#38845 resize nam borderwidth van dialog wrap div niet mee, nu wel
svn path=/Website/trunk/; revision=32188
This commit is contained in:
@@ -641,7 +641,7 @@ var FcltMgr =
|
||||
}
|
||||
// Hoeveel extra moeten we rekenen voor jQuery dialog
|
||||
var dialogborderHeight = $(frm).closest(".ui-dialog").outerHeight() - $(frm).height();
|
||||
// var dialogborderWidth = $(frm).closest(".ui-dialog").outerWidth() - $(frm).closest(".ui-dialog").width();
|
||||
var dialogborderWidth = Math.ceil($(frm).closest(".ui-dialog").outerWidth() - $(frm).closest(".ui-dialog").width());
|
||||
$(frm).height('10px'); // Voor verkleinde/ kleine frames. Anders default minimaal 150px
|
||||
var newHeight = Math.min(frmcontent.outerHeight(), $(window).height()-100);
|
||||
// FcltMgr.alert("W:" + $(window).height());
|
||||
@@ -657,6 +657,8 @@ var FcltMgr =
|
||||
extraWidth = 24; // scrollbar
|
||||
|
||||
var newWidth = Math.min(frmcontent.outerWidth()+extraWidth , $(window).width()-10);
|
||||
if (dialogborderWidth) // AAVL#38845
|
||||
newWidth += dialogborderWidth;
|
||||
$('iframe#fcltmodal'+FcltMgr._modalCount).dialog('option', 'width', newWidth);
|
||||
|
||||
// Ook al is onze <iframe> de dialog moeten we deze wel afzonderlijk te zetten?
|
||||
|
||||
Reference in New Issue
Block a user