PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 0ms app.codeStats 1ms

/code/plugins/dhtmlx/dhtmlxWindows/codebase/ext/dhtmlxwindows_wmn.js

http://mapapp.googlecode.com/
JavaScript | 20 lines | 5 code | 3 blank | 12 comment | 6 complexity | c0bb2dce8777cb36cb1820c77d1221c9 MD5 | raw file
 1//v.2.1 build 90226
 2
 3/*
 4Copyright DHTMLX LTD. http://www.dhtmlx.com
 5You allowed to use this component or parts of it under GPL terms
 6To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com
 7*/
 8dhtmlXWindows.prototype._enableWebMenu = function() {this._attachWebMenu = function(win) {win._menuId = win._midd;win._menuH = (_isIE?25:22);win._menuT = (_isIE?24:23);win.menu = new dhtmlXMenuObject(win._menuId, "topId");var skin = "glassy_blue";switch (this.skin) {case "glassy_blue":
 9 case "glassy_blue_light":
10 
11 win._menuH = 23;win._menuT = 23;break;case "dhx_black":
12 case "dhx_blue":
13 skin = this.skin;if (win.toolbar != null){win._menuH = 25;win._menuT = 25;win._content.childNodes[0].className += " dhtmlxMenu_"+this._skin+"_bottom_border"}else {win._menuH = 24;win._menuT = 24};break};win.menu.setSkin(skin);win._content.childNodes[0].style.display = "";win._content.childNodes[0].style.height = win._menuH + "px";win._content.childNodes[2].style.top = win._menuT + (win._toolbarT!=null?win._toolbarT:0) + "px";if (_isIE){win._IEFixMTS = true;if (document.compatMode == "BackCompat"){var pad = win._menuT + (win._toolbarT!=null?win._toolbarT:0) + (win._sbH!=null?win._sbH:0);win._content.childNodes[2].style.paddingBottom = pad + "px"}};if (_isOpera && win.layout != null){win.layout._fixCellsContentOpera950()};if (win.accordion != null){win.accordion.setSizes()};if (win.layout != null){win.layout.setSizes(win)};return win.menu}};
14//v.2.1 build 90226
15
16/*
17Copyright DHTMLX LTD. http://www.dhtmlx.com
18You allowed to use this component or parts of it under GPL terms
19To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com
20*/