Browse Source

编辑器滚动fixed高度

jack 7 years ago
parent
commit
e3c3b52bef
1 changed files with 3 additions and 2 deletions
  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
        }