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

http://mapapp.googlecode.com/ · JavaScript · 16 lines · 2 code · 2 blank · 12 comment · 5 complexity · dabd89f3dcf1d8d54a4e842d34b4f0b1 MD5 · raw file

  1. //v.2.1 build 90226
  2. /*
  3. Copyright DHTMLX LTD. http://www.dhtmlx.com
  4. You allowed to use this component or parts of it under GPL terms
  5. To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com
  6. */
  7. dhtmlXWindows.prototype._enableWebToolbar = function() {this._attachWebToolbar = function(win) {win._toolbarId = win._tidd;win._toolbarH = (_isIE?24:24)
  8. win._toolbarT = (_isIE?23:24);win.toolbar = new dhtmlXToolbarObject(win._toolbarId, this.skin);win._content.childNodes[1].style.display = "";win._content.childNodes[1].style.height = win._toolbarH + "px";win._content.childNodes[2].style.top = win._toolbarT + (win._menuT!=null?win._menuT:0) + "px";if (_isIE){win._IEFixMTS = true;if (document.compatMode == "BackCompat"){var pad = win._toolbarT + (win._menuT!=null?win._menuT:0) + (win._sbH!=null?win._sbH:0);win._content.childNodes[2].style.paddingBottom = pad + "px"}};if (win.menu != null){win._content.childNodes[1].className += " dhtmlxToolbar_"+this.skin+"_bottom_top"};if (win.grid != null){win.grid.setSizes()};if (win.accordion != null){win.accordion.setSizes()};if (win.layout != null){win.layout.setSizes(win)};if (_isIE=="adv"){var that = this;var dim = win.getDimension();win.setDimension(dim[0], dim[1]+1);that._redrawWindow(win);window.setTimeout(function(){var dim=win.getDimension();win.setDimension(dim[0],dim[1]-1);that._redrawWindow(win)},1)};return win.toolbar}};
  9. //v.2.1 build 90226
  10. /*
  11. Copyright DHTMLX LTD. http://www.dhtmlx.com
  12. You allowed to use this component or parts of it under GPL terms
  13. To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com
  14. */