rsence 2.0.1.12 → 2.0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/js/controls/window/window.js +21 -20
  3. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1.12
1
+ 2.0.2.13
@@ -205,25 +205,21 @@ HWindow = HDynControl.extend({
205
205
  * been clicked
206
206
  **/
207
207
  windowCollapse: function(){
208
- var _minRect = HRect.nu(
209
- this.rect.leftTop,
210
- this.rect.leftTop.subtract(
211
- 0-this.options.minSize[0],
212
- 0-this.options.minSize[1]
213
- )
214
- );
215
- _minRect.setHeight(26);
216
- if(this.rect.equals(_minRect)){
217
- if(this.prevRect !== undefined && !this.prevRect.equals(_minRect)){
218
- this.animateTo( HRect.nu( this.prevRect ) );
219
- }
220
- else {
221
- this.windowZoom();
222
- }
208
+ if(this.options.collapseUsing){
209
+ this.options.collapseUsing( this );
223
210
  }
224
211
  else {
225
- this.prevRect = HRect.nu(_minRect);
226
- this.animateTo( _minRect );
212
+ var _minRect = HRect.nu(
213
+ this.rect.leftTop,
214
+ this.rect.leftTop.subtract(
215
+ 0-this.options.minSize[0],
216
+ 0-this.options.minSize[1]
217
+ )
218
+ );
219
+ if(!this.rect.equals(_minRect)){
220
+ this.prevRect = HRect.nu(_minRect);
221
+ this.animateTo( _minRect );
222
+ }
227
223
  }
228
224
  },
229
225
 
@@ -246,8 +242,8 @@ HWindow = HDynControl.extend({
246
242
  _view = HSystem.views[_views[i]];
247
243
  _size = ELEM.getVisibleSize(_view.elemId);
248
244
  _pos = ELEM.getVisiblePosition(_view.elemId);
249
- _right = _size[0]+_pos[0];
250
- _bottom = _size[1]+_pos[1];
245
+ _right = _size[0]+_pos[0]-this.pageX();
246
+ _bottom = _size[1]+_pos[1]-this.pageY();
251
247
  if(_right > _fitsRect.width){
252
248
  _fitsRect.setWidth(_right);
253
249
  }
@@ -267,7 +263,12 @@ HWindow = HDynControl.extend({
267
263
  else if(_fitsRect.height < this.options.minSize[1]){
268
264
  _fitsRect.setHeight( this.options.minSize[1] );
269
265
  }
270
- if(this.rect.equals(_fitsRect)){
266
+ if (!_fitsRect.equals(_maxRect) && (EVENT.status[ EVENT.button2 ] || EVENT.status[ EVENT.altKeyDown ]) ){
267
+ this.animateTo( _maxRect );
268
+ this.prevRect = HRect.nu( this.rect );
269
+ this.animateTo( _maxRect );
270
+ }
271
+ else if(this.rect.equals(_fitsRect)){
271
272
  if(this.prevRect !== undefined && !this.prevRect.equals(_fitsRect)){
272
273
  this.animateTo( HRect.nu(this.prevRect) );
273
274
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence
3
3
  version: !ruby/object:Gem::Version
4
- hash: 115
4
+ hash: 125
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- - 12
11
- version: 2.0.1.12
9
+ - 2
10
+ - 13
11
+ version: 2.0.2.13
12
12
  platform: ruby
13
13
  authors:
14
14
  - Riassence Inc.
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-07-07 00:00:00 +03:00
19
+ date: 2010-07-09 00:00:00 +03:00
20
20
  default_executable: rsence
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency