mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
dda3af7dbf
commit
1ecfbfcd7b
@ -155,8 +155,8 @@
|
||||
},
|
||||
_computeTableDivWidth:function(){
|
||||
let mainWidth = document.getElementsByTagName('body')[0].clientWidth - document.getElementById('menu-nav').offsetWidth;
|
||||
let treeWidth = document.getElementsByClassName('room-floor-unit-tree')[0].offsetWidth;
|
||||
mainWidth = mainWidth - 20 - treeWidth -15 - 20;
|
||||
//let treeWidth = document.getElementsByClassName('room-floor-unit-tree')[0].offsetWidth;
|
||||
mainWidth = mainWidth - 20 -15 - 20;
|
||||
//document.getElementsByClassName('hc-table-div')[0].style.width=mainWidth+'px';
|
||||
return mainWidth+'px';
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user