1 // ========================================================================== 2 // Project: SproutCore - JavaScript Application Framework 3 // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors. 4 // Portions ©2008-2011 Apple Inc. All rights reserved. 5 // License: Licensed under MIT license (see license.js) 6 // ========================================================================== 7 8 SC.BaseTheme.splitDividerRenderDelegate = SC.RenderDelegate.create({ 9 className: 'split-divider', 10 dividerSize: 1, 11 12 splitPositionOffset: -5, 13 splitSizeOffset: 10, 14 15 render: function(dataSource, context) { 16 this.addSizeClassName(dataSource, context); 17 18 // the divider view itself is the grabber, but the visible line 19 // may be inside of it. 20 context.push("<div class='line'></div>"); 21 }, 22 23 update: function(dataSource, jquery) { 24 this.updateSizeClassName(dataSource, jquery); 25 } 26 }); 27