开发者社区> 问答> 正文

8.X模块管理不能在正确位置显示管理的bug

打开mode/area/js/adminview.js将 this.getpos替换如下
//获取绝对路径
        this.getpos=function(o) {
                var rect = o.getBoundingClientRect();
                // isszz 2018-06-28 17:13:09 fix bug
                var left =(((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.scrollLeft == 'number' ? t : document.body).scrollLeft;
                var top = (((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.scrollTop == 'number' ? t : document.body).scrollTop;
                return {'x' : rect.left + left, 'y' : rect.top + top};
        }

查找_mouseover:修改
// 修改大小位置
        // var rect = this.getBoundingClientRect();
        var configBox = getObj('configBox');
        var thisPos = tmpdis.getpos(this);
        configBox.style.left = thisPos.x - 1 + 'px';
        configBox.style.top = thisPos.y - 23 + 'px';
下面还有一段
//显示出来
        // var thisPos=tmpdis.getpos(this);
        tmpdis.disdiv(thisPos.x - 1,thisPos.y - 1,this.offsetWidth,this.offsetHeight,'block');




展开
收起
做做 2018-06-28 17:32:17 3396 0
1 条回答
写回答
取消 提交回答
  • 做做还是那个做做吗?


    2018-07-05 21:59:50
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《用管控策略设定多账号组织全局访问边界》 立即下载
动态、高效,蚂蚁动态卡片的内核逻辑 立即下载
Android内存泄漏自动化链路分析组件--Probe 立即下载