浏览代码

编辑器滚动fixed高度

jack 8 年之前
父节点
当前提交
e3c3b52bef
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      js/ueditor/ueditor.all.js

+ 3 - 2
js/ueditor/ueditor.all.js

@ -17545,9 +17545,10 @@ UE.plugins['autofloat'] = function() {
17545 17545
                flag = false;
17546 17546
                toolbarBox.style.left =  domUtils.getXY(toolbarBox).x - document.documentElement.getBoundingClientRect().left+2  + 'px';
17547 17547
            }
17548
            if(toolbarBox.style.position != 'fixed'){
17548
            if(toolbarBox.style.position != 'fixed'){
17549
            	var ffff=document.getElementById('header').offsetHeight
17549 17550
                toolbarBox.style.position = 'fixed';
17550
                toolbarBox.style.top = topOffset+62 +"px";
17551
                toolbarBox.style.top = topOffset+ffff+"px";
17551 17552
                ((origalFloat == 'absolute' || origalFloat == 'relative') && parseFloat(origalLeft)) && (toolbarBox.style.left = toobarBoxPos.x + 'px');
17552 17553
            }
17553 17554
        }