Update layer.js

解决type为0时,火狐下获取不到padding值
pull/44/head
meihangbo 2017-03-03 08:44:22 +08:00 committed by GitHub
parent 65ecfa51f3
commit 963334e367
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ Class.pt.auto = function(index){
var btnHeight = layero.find('.'+doms[6]).outerHeight() || 0;
function setHeight(elem){
elem = layero.find(elem);
elem.height(area[1] - titHeight - btnHeight - 2*(parseFloat(elem.css('padding'))|0));
elem.height(area[1] - titHeight - btnHeight - (parseFloat(elem.css('padding-top'))|0) - (parseFloat(elem.css('padding-bottom'))|0));
}
switch(config.type){
case 2: