View Full Version : Combobox in a tooltip

23 Sep 2013, 6:55 AM

I have a tooltip where I want to select something from a combobox, but as soon as I am choosing something from the combo, it hides the complete tooltip. Is there a way to avoid this?

Many thanks!!

var config = {
layout: 'vbox',
align: 'stretch',
autoHide: false,
autoHeight: false,
closable: false,
hideBorders: true,
maxWidth: 800,
width: 280,
height: 500,
anchor: 'top',
dismissDelay: 0,
shadowOffset: 1,
unstyled: false,
items: [comboPanel]

30 Sep 2013, 1:49 PM
The private onDocMouseDown method of Ext.ToolTip is what managed that action. Where it has "!e.within(this.el.dom)" in the conditional is what's closing the tooltip since the combo's picker is not a child of the tooltip element.

You'd either need to override this method or set up a hook on the tooltip's beforehide event.