Sha256: 3e435fd4df3cde31c4de1f908e05b9e88feefd163fa2f0a403d01ad713ab75ad
Contents?: true
Size: 583 Bytes
Versions: 5
Compression:
Stored size: 583 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.onMoveResize, this); this.on("resize", this.onMoveResize, this); }, this); } }, onMoveResize: function(){ var x = this.getPosition()[0], y = this.getPosition()[1], w = this.getSize().width, h = this.getSize().height; this.setSizeAndPosition({x:x, y:y, w:w, h:h}); // API call } }
Version data entries
5 entries across 5 versions & 2 rubygems