Merge pull request #13 from Relucent/patch-1

Update laydate.dev.js
pull/14/head
贤心 2015-07-24 09:42:21 +08:00
commit 943d76ecff
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ Dates.orien = function(obj, pos){
} else {
tops = rect.top > obj.offsetHeight/1.5 ? rect.top - obj.offsetHeight + 1 : Dates.winarea() - obj.offsetHeight;
}
obj.style.top = tops + (pos ? 0 : Dates.scroll()) + 'px';
obj.style.top = Math.max(tops + (pos ? 0 : Dates.scroll()),1) + 'px';
};
//吸附定位