rsence-pre 2.3.0.7 → 2.3.0.8
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.0.
|
1
|
+
2.3.0.8.pre
|
@@ -124,11 +124,12 @@ HSheet = HControl.extend({
|
|
124
124
|
_parentWidth = _parentSize[0],
|
125
125
|
_parentHeight = _parentSize[1],
|
126
126
|
_rect = this.rect,
|
127
|
-
_centerLeft = Math.round(_parentWidth*0.5-_rect.width*0.5),
|
127
|
+
_centerLeft = Math.round((_parentWidth*0.5)-(_rect.width*0.5)),
|
128
128
|
_centerTop = 0,//Math.round(_parentHeight/2-_rect.height/2);
|
129
129
|
_dimmerLeft = 0-_centerLeft,
|
130
130
|
_dimmerTop = 0-_centerTop;
|
131
131
|
this.rect.offsetTo( _centerLeft, _centerTop );
|
132
|
+
this.drawRect();
|
132
133
|
this.setStyleOfPart('dimmer','left',_dimmerLeft+'px');
|
133
134
|
this.setStyleOfPart('dimmer','top',_dimmerTop+'px');
|
134
135
|
this.setStyleOfPart('dimmer','width',_parentWidth+'px');
|
@@ -221,10 +221,30 @@ HControl = HView.extend({
|
|
221
221
|
_this.setEvents(_events);
|
222
222
|
_this.setEnabled(_options.enabled);
|
223
223
|
|
224
|
+
// The traditional HValue instance to pass in options to be bound:
|
224
225
|
if(_options.valueObj){
|
225
226
|
_options.valueObj.bind(_this);
|
226
227
|
}
|
227
|
-
|
228
|
+
|
229
|
+
// The newer HValue instance to pass in options to be bound:
|
230
|
+
// - Same as in guitree syntax, also allows it to be just a valueId
|
231
|
+
if(_options.bind){
|
232
|
+
if(typeof _options.bind === 'string'){
|
233
|
+
var
|
234
|
+
_valueId = _options.bind,
|
235
|
+
_valueObj = HVM.values[_valueId];
|
236
|
+
if( _valueObj ){
|
237
|
+
_valueObj.bind( _this );
|
238
|
+
}
|
239
|
+
}
|
240
|
+
else if ( typeof _options.bind === 'object' ) {
|
241
|
+
_options.bind.bind( _this );
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
// If none of the above value bindings exist, use a lighter-weight
|
246
|
+
// dummy valueObj instead
|
247
|
+
if(!_this.valueObj) {
|
228
248
|
_this.valueObj = HDummyValue.nu();
|
229
249
|
}
|
230
250
|
|
data/js/foundation/view/view.js
CHANGED
@@ -732,13 +732,21 @@ HView = HClass.extend({
|
|
732
732
|
ELEM.setCSS( this._ieNoThrough, 'position:absolute;left:0;top:0;bottom:0;right:0;background-color:#ffffff;font-size:0;line-height:0' );
|
733
733
|
ELEM.setStyle( this._ieNoThrough, 'opacity', 0.01 );
|
734
734
|
}
|
735
|
-
this.drawSubviews();
|
736
735
|
if(this.options.style){
|
737
736
|
this.setStyles( this.options.style );
|
738
737
|
}
|
739
738
|
if(this.options.html){
|
740
739
|
this.setHTML(this.options.html);
|
741
740
|
}
|
741
|
+
this.drawSubviews();
|
742
|
+
// if options contain a subviews function, call it with the namespace of self
|
743
|
+
if(this.options.subviews && typeof this.options.subviews == 'function'){
|
744
|
+
this.options.subviews.call( this );
|
745
|
+
}
|
746
|
+
// for external testing purposes, a custom className can be defined:
|
747
|
+
if(this.options.testClassName){
|
748
|
+
ELEM.addClassName(this.elemId,this.options.testClassName);
|
749
|
+
}
|
742
750
|
if(!this.isHidden){
|
743
751
|
this.show();
|
744
752
|
}
|
data/plugins/main/js/main.js
CHANGED
@@ -73,6 +73,14 @@ RSence.GUIApp = HApplication.extend({
|
|
73
73
|
// _this.renderer = COMM.JSONRenderer.extend({
|
74
74
|
//
|
75
75
|
// }).nu( _this.value, _this );
|
76
|
+
_this.drawSubviews();
|
77
|
+
if( _this.options.subviews ){
|
78
|
+
_this.options.subviews.call(_this);
|
79
|
+
}
|
80
|
+
},
|
81
|
+
|
82
|
+
drawSubviews: function(){
|
83
|
+
|
76
84
|
},
|
77
85
|
|
78
86
|
die: function(){
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence-pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-11-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsence-deps
|