-
27 Mar 2012 1:46 PM #11
@shukino
The following code works for me in GA:
Code:Ext.application({ name: 'Sencha', launch: function() { Ext.Viewport.add({ top: 10, left: 10, width: 100, height: 100, modal: true, zIndex: 999, style: 'background:red' }); } });Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
28 Mar 2012 1:09 AM #12
ZIndex in TabletPicker, PhonePicker
ZIndex in TabletPicker, PhonePicker
Thank you for your response.
Simple floating Panel's zIndex seems to have been fixed in sencha-touch 2.0.0.
However, modifying zIndex for floating panel in Select does not work, I think.
After showBy zIndex became small.
Please check console.log.
I used following environment.Code:Ext.application({ launch: function () { var select = Ext.create('Ext.field.Select', { label: 'Choose one', width: 300, padding: 2, zIndex: 100, defaultTabletPickerConfig: { zIndex: 999, layout: 'fit' }, options: [{ text: 'First', value: 'first' }, { text: 'Second', value: 'second' }] }); //codes inside Select var listPanel = select.getTabletPicker(), list = listPanel.down('list'), store = list.getStore(), index = store.find(select.getValueField(), select.getValue(), null, null, null, true), record = store.getAt((index == -1) ? 0 : index); Ext.Viewport.add(listPanel); console.log('1st zIndex: ' + listPanel.getZIndex()); listPanel.showBy(select.getComponent()); list.select(record, null, true); console.log('2nd zIndex: ' + listPanel.getZIndex()); var container = Ext.create('Ext.Container', { fullscreen: true, items: [{ docked: 'top', xtype: 'titlebar', items: [select] }] }); Ext.Viewport.add(container); } });
sencha-touch-2.0.0-gpl
sencha-touch-all-debug.js
Regards,
-
11 Oct 2012 1:38 AM #13
having the same issue, can't modify zIndex of the select-overlay of a select field .....
-
11 Oct 2012 1:51 AM #14
At least I found a workaround:
but of course this issue needs attention. If you are mixing Sencha Touch with another library, adjusting zIndexes needs to be possible IMHO.Code:defaultTabletPickerConfig: { zIndex: 1000, updateZIndex: Ext.emptyFn },
-
11 Oct 2012 4:05 AM #15
Hmm somehow this workaround stopped working, what did work was overriding the updateZIndex function with an empty function and then just setting the z-index in css:
Code:div.x-select-overlay { z-index: 1000; }
-
12 Oct 2012 7:45 AM #16
It works fine in debug mode, but not in production, any idea why?


Reply With Quote