Sha256: 7be19ce7c112a7a8908ae8d555f5e84bedcecc160fb3779d5bb20ceff1645130
Contents?: true
Size: 839 Bytes
Versions: 9
Compression:
Stored size: 839 Bytes
Contents
// ========================================================================== // Project: TestRunner.OffsetCheckboxView // Copyright: ©2009 My Company, Inc. // ========================================================================== /*globals TestRunner */ /** @class This special view class will automatically adjusts its left offset based on an "offset" value, which is will be bound to the width of the split view. This way when you resize the split view, the checkbox view will move also. @extends SC.CheckboxView */ TestRunner.OffsetCheckboxView = SC.CheckboxView.extend( /** @scope TestRunner.OffsetCheckboxView.prototype */ { /** bind to thickness of splitview (though a controller) */ offset: 0, offsetDidChange: function() { this.adjust('left', this.get('offset')+6); }.observes('offset') });
Version data entries
9 entries across 9 versions & 1 rubygems