-
22 Jan 2012 4:45 PM #1
Answered: Actionsheet in a card - off screen
Answered: Actionsheet in a card - off screen
My MVC view of a card layout:
The actionsheet is below fold at bottom of the 1000px. 'docked' option does nothing. Suggestions?Code:Ext.define('SquareRoute.view.Settings', { extend: 'Ext.form.Panel', title: 'Settings', initialize: function() { this.down('actionsheet').show(); this.callParent(); }, config: { html: '<div style="height:1000px"></div>', items: [ { xtype: 'actionsheet', hideOnMaskTap: true, id: 'photography', docked: 'top', items: [ { text: 'Take photo', ui : 'confirm', }, { text: 'Browse photo library', ui : 'confirm', }, { text: 'Cancel', handler: function() { this.up('actionsheet').hide(); } } ] }, ] } });
-
Best Answer Posted by rdougan
Remove the docked configuration and change it to:
This means it will be floating at the top of your container.Code:{ xtype: 'actionsheet', top: 0, left: 0, right: 0, items: [...] }
-
22 Jan 2012 5:21 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
- Answers
- 83
Action sheets are not designed to be docked to a container.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
23 Jan 2012 10:57 AM #3
Remove the docked configuration and change it to:
This means it will be floating at the top of your container.Code:{ xtype: 'actionsheet', top: 0, left: 0, right: 0, items: [...] }Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
23 Jan 2012 11:04 AM #4
Aahhhhhh!!! thanks that did the trick!


Reply With Quote