Просмотр исходного кода

办公中心移动端重叠的问题

fancy 5 лет назад
Родитель
Сommit
4dfb670dc2
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      o2web/source/x_component_process_TaskCenter/Main.js

+ 5 - 0
o2web/source/x_component_process_TaskCenter/Main.js

@@ -140,6 +140,11 @@ MWF.xApplication.process.TaskCenter.Main = new Class({
         this.tabAreaNode = new Element("div", {
             "styles": this.css.tabAreaNode
         }).inject(this.content);
+        debugger;
+        var size = this.content.getSize();
+        if (size && size.x < 400) { //移动端屏幕宽度小的时候 5个tab会重叠
+            this.tabAreaNode.setStyle("height", "80px");
+        }
 
         this.createTabItem(this.lp.task, "task.png", "task", function () {
             this.showTask();