0

I need to implement autocomplete select box inside jqueryUI dialog.

See it here: http://jsfiddle.net/zcgWa/

Currently dialog is overflowing the select box. (click the select box) I have found a solution by removing jqueryUI style overflow:hidden.

.ui-dialog {
overflow: hidden;
position: absolute;
top: 0;
left: 0;
padding: .2em;
outline: 0;
}

But the overflow is a native dialog style that comes by default, that is why I think it is not the perfect solution. I also have many other dialogs pop-ups accross the project and removing oveflow might cause some of them not to work properly.

Is there any other better solution?

Thanks.

1 Answer 1

1

I managed to fix this by appending the <input> that represents the dropdown to the wrapper after the autocomplete and tooltip has been created. i.e. Move line 18 of your JS Fiddle

.appendTo( this.wrapper )

to line 30 (after this):

.tooltip({
    tooltipClass: "ui-state-highlight"
})
.appendTo( this.wrapper );

See http://jsfiddle.net/nA5L2/1/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.