PDA

View Full Version : [CLOSED] [4.2] ComboBox shadow missing



skirtle
25 Apr 2013, 4:33 PM
4.2.0 and 4.2.1-beta-1.

The shadow on the dropdown for a combobox seems to be missing. For example, see:

http://docs.sencha.com/extjs/4.2.0/extjs-build/examples/form/combos.html

Neptune and Classic, Chrome and Firefox. Seems to happen no matter what.

The shadow does re-appear in some circumstances. For example, opening and closing another floating component (such as a tooltip) while the boundlist is open seems to kick the shadow into life.

slemmon
25 Apr 2013, 6:35 PM
Thanks for the report! I have opened a bug in our bug tracker.

gruszks
8 Oct 2013, 3:06 AM
There is any workaround for this issue?

skirtle
10 Oct 2013, 6:18 AM
My bodge:


Ext.define('MyApp.form.field.ComboBox', {
override: 'Ext.form.field.ComboBox',

alignPicker: function() {
var me = this;

me.callParent();

refresh();

Ext.defer(refresh, 10);

function refresh() {
var picker = me.getPicker(),
el = picker.el,
shadow = el && el.shadow,
mask;

if (picker.isVisible()) {
mask = picker.loadMask;

if (mask && mask.isVisible && mask.isVisible()) {
// Force the mask to be re-positioned
mask.hide();
mask.show();
}

shadow.show(el);
}
}
}
});