Sha256: 59a6064e3f5effe2e5657e5f072619015b596fb7006c7b1dfe8a728036d0f4b8

Contents?: true

Size: 833 Bytes

Versions: 18

Compression:

Stored size: 833 Bytes

Contents

// ==========================================================================
// Project:   TestRunner.OffsetCheckboxView
// Copyright: ©2010 Apple 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

18 entries across 18 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.5 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.5-java lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.4-java lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.4 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.3.1 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.3-java lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.3 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.2-java lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.2 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.1-java lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.1 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.0-java lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js
sproutcore-1.4.0 lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js