-
23 Jul 2010 12:12 PM #1
[CLOSED-166] Overlay problems?
[CLOSED-166] Overlay problems?
I've got an overlay that I use for alert and prompt type functionality by hiding buttons. Bad things happen (the yes button appears to end up orphaned).
Code:Ext.ns('home', 'Ext.ux'); var overlay = new Ext.Panel({ floating: true, modal: true, centered: true, width: Ext.platform.isPhone ? 260 : 400, height: Ext.platform.isPhone ? 250 : 400, styleHtmlContent: true, scroll: 'vertical', html: 'This is a test', dockedItems: [{ xtype: 'container', dock: 'bottom', cls: 'bBtn', items: [{ id: 'okBtn', xtype: 'button', dock: 'bottom', ui: 'action', text: 'OK', handler: function () { overlay.hide(); } }, { id: 'okCancelBtns', layout: 'hbox', dock: 'bottom', items: [ { xtype: 'button', text: 'No', ui: 'drastic', flex: 1, id: 'cancelBtn', handler: function () { if (overlay.btnFn) { overlay.btnFn(false); } overlay.btnFn = null; } }, { xtype: 'button', ui: 'action', text: 'Yes', flex: 1, id: 'okBtn', handler: function () { if (overlay.btnFn) { overlay.btnFn(true); } overlay.btnFn = null; } } ] }] }, { dock: 'top', xtype: 'toolbar', title: '?', id: 'overlayTB' }], cls: 'htmlcontent' }); home.alert = function (txt, hdr) { Ext.getCmp('okCancelBtns').hide(); Ext.getCmp('okBtn').show(); overlay.update(txt); overlay.setCentered(true); Ext.getCmp('overlayTB').setTitle(hdr || "Alert"); overlay.show(); }; Ext.setup({ tabletStartupScreen: 'resources/img/tablet_startup.png', phoneStartupScreen: 'resources/img/phone_startup.png', icon: 'resources/img/icon.png', glossOnIcon: false, onReady: function () { home.alert("FOO", "BAR"); } });
-
26 Jul 2010 8:13 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Your issue has been entered in Trac for review. Thank you for the report.
-
28 Jul 2010 1:13 AM #3
This isn't a bug. You have a duplicate id ('okBtn').
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
28 Jul 2010 3:12 AM #4
That did fix it, thanks a lot for the remote debugging. Strange failure mode, but clearly a mistake.
Sorry about that,
--Max
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-166][3.0.0] Grid+hiddencols+expander = wrong cell positions in Safari/Chrome
By Qtx in forum Ext 3.x: BugsReplies: 6Last Post: 16 Feb 2011, 10:02 AM -
[FIXED-166] xds-1.0.2.0 Erroniously warns of missing TimeField store
By froamer in forum Ext Designer: BugsReplies: 3Last Post: 7 Jul 2010, 9:00 AM -
[CLOSED][3.0.3] Localization Problems
By Kevin Gale in forum Ext 3.x: BugsReplies: 2Last Post: 7 Dec 2009, 1:13 PM -
[CLOSED] [1.1.4] Problems with BorderLayout
By sdc in forum Ext GWT: Bugs (1.x)Replies: 4Last Post: 4 Dec 2008, 7:43 AM -
[2.0.2][CLOSED] ComboBox's problems in IE6
By xiewufeng in forum Ext 2.x: BugsReplies: 8Last Post: 27 Aug 2008, 12:49 AM


Reply With Quote