META-INF.resources.openmonitor.jui.dest.win.taskbar.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easyopen Show documentation
Show all versions of easyopen Show documentation
一个简单易用的接口开放平台,平台封装了常用的参数校验、结果返回等功能,开发者只需实现业务代码即可。https://gitee.com/durcframework/easyopen
(function(){JUI.Class("Taskbar",{init:function(){this.wins=[]},add:function(a){this.wins.push(a);this.calcPosition()},del:function(a){this.remove(a);this.calcPosition()},calcPosition:function(){var d=0;var f=$(window).height();for(var c=0,b=this.wins.length;c-1){this.wins.splice(b,1)}},buildTitleSize:function(d){var h="pui-dialog-titlebar";var c=d.getWin().find(".pui-dialog-titlebar").eq(0);var e=c.find(".pui-dialog-title").innerWidth();var i=c.innerHeight();var f=0;var a=40;var b=c.find("a");b.each(function(){f+=$(this).innerWidth()});var g=e+a+f;return{width:g,height:i}}})})();