Sha256: d56872a46866cb214fb3280e3a9592365c1b259e1abc9c79c092b82011846f83

Contents?: true

Size: 880 Bytes

Versions: 9

Compression:

Stored size: 880 Bytes

Contents

{
  layout: 'fit',

  initComponent: function(){
    this.callParent();

    // set the move and resize events after window is shown, so that they don't fire at initial rendering
    if (this.persistence) {
      this.on("show", function(){
        this.on("move", this.netzkeOnMoveResize, this);
        this.on("resize", this.netzkeOnMoveResize, this);
        this.on("maximize", Ext.Function.pass(this.netzkeOnMaximize, [true]), this);
        this.on("restore", Ext.Function.pass(this.netzkeOnMaximize, [false]), this);
      }, this);
    }
  },

  netzkeOnMoveResize: function(){
    var x = this.getPosition()[0], y = this.getPosition()[1], w = this.getSize().width, h = this.getSize().height;
    this.server.setSizeAndPosition({x: x, y: y, width: w, height: h}); // API call
  },

  netzkeOnMaximize: function(maximized) {
    this.server.setMaximized(maximized);
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netzke-basepack-6.5.0.0 lib/netzke/window/base/client/base.js
netzke-basepack-6.5.0.0.rc2 lib/netzke/window/base/client/base.js
netzke-basepack-6.5.0.0.rc1 lib/netzke/window/base/client/base.js
netzke-basepack-1.0.1.0 lib/netzke/window/base/client/base.js
netzke-basepack-1.0.0.1 lib/netzke/window/base/client/base.js
netzke-basepack-1.0.0.0 lib/netzke/window/base/client/base.js
netzke-basepack-1.0.0.0.pre3 lib/netzke/window/base/client/base.js
netzke-basepack-1.0.0.0.pre2 lib/netzke/window/base/client/base.js
netzke-basepack-1.0.0.0.pre lib/netzke/window/base/client/base.js