Sha256: f432d534e6e08209c13fddf959562da66cbd8b2340e9282d2f6607dced67e911
Contents?: true
Size: 1.57 KB
Versions: 17
Compression:
Stored size: 1.57 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== sc_require('render_delegates/picker'); // This is the same as a pickerRenderDelegate, but is named 'menu' instead. SC.BaseTheme.menuRenderDelegate = SC.BaseTheme.pickerRenderDelegate.create({ name: 'menu', render: function(orig, dataSource, context) { this.addSizeClassName(dataSource, context); orig(dataSource, context); }.enhance(), update: function(orig, dataSource, jquery) { this.updateSizeClassName(dataSource, jquery); orig(dataSource, jquery); }.enhance(), itemHeight: 20, itemSeparatorHeight: 9, menuHeightPadding: 6, submenuOffsetX: 2, verticalOffset: 23, 'sc-tiny-size': { itemHeight: 10, itemSeparatorHeight: 2, menuHeightPadding: 2, submenuOffsetX: 0 }, 'sc-small-size': { itemHeight: 16, itemSeparatorHeight: 7, menuHeightPadding: 4, submenuOffsetX: 2 }, 'sc-large-size': { itemHeight: 60, itemSeparatorHeight: 20, menuHeightPadding: 0, submenuOffsetX: 4 }, // pretty sure these sizes are wrong, but I copied them from their original // values so... please fix. 'sc-huge-size': { itemHeight: 20, itemSeparatorHeight: 9, menuHeightPadding: 0, submenuOffsetX: 0 } });
Version data entries
17 entries across 17 versions & 1 rubygems