dojox/grid/enhanced/plugins/Dialog.js

  • Provides:

    • dojox.grid.enhanced.plugins.Dialog
  • Requires:

    • dijit.Dialog in common in project dijit
    • dojo.window in common in project dojo
  • dojox.grid.enhanced.plugins.Dialog

    • type
      Function
    • chains:
      • dijit.Dialog: (prototype)
      • dijit.Dialog: (call)
    • summary
  • dojox.grid.enhanced.plugins.Dialog.refNode

    • summary
  • dojox.grid.enhanced.plugins.Dialog._position

    • type
      Function
    • source: [view]
        if(this.refNode && !this._relativePosition){
         var refPos = dojo.position(dojo.byId(this.refNode)),
          thisPos = dojo.position(this.domNode),
          viewPort = dojo.window.getBox();
         if(refPos.x < 0){
          refPos.x = 0;
         }
         if(refPos.x + refPos.w > viewPort.w){
          refPos.w = viewPort.w - refPos.x;
         }
         if(refPos.y < 0){
          refPos.y = 0;
         }
         if(refPos.y + refPos.h > viewPort.h){
          refPos.h = viewPort.h - refPos.y;
         }
         refPos.x = refPos.x + refPos.w / 2 - thisPos.w / 2;
         refPos.y = refPos.y + refPos.h / 2 - thisPos.h / 2;
         if(refPos.x >= 0 && refPos.x + thisPos.w <= viewPort.w &&
          refPos.y >= 0 && refPos.y + thisPos.h <= viewPort.h){
          this._relativePosition = refPos;
         }
        }
        this.inherited(arguments);
    • summary
  • dojox.grid.enhanced.plugins.Dialog._relativePosition

    • summary
  • dojox.grid.enhanced.plugins

    • type
      Object
    • summary
  • dojox.grid.enhanced

    • type
      Object
    • summary
  • dojox.grid

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary