-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.2.0rc1] bootstrap modal dialog #426
Comments
Try changing z-index. Does it work ? |
I've traced this issue to the 61e54ee. The cause is new version of fixPosition function in autocomplete.js. |
Oh, and yes, for modal dialog it is rendered ok when z-index > 1050, but I think this is not the thing to be hardcoded in css because we don't know what maximum z-index could be enough. |
Ok so what if we set z-index of the autocomplete to be equal to the one calculated for the input, would that work ? |
The z-index may be set not for the input but for one of its parents. If you get input's z-index, it will get you "auto" so this won't help. |
Could you try with fix/zindex branch ? I don't have a bootstrap project with an autocomplete in a modal window, there is none in test_project, I don't have time to make one for the moment, maybe after Djangocon. So your help is welcome on this. |
Ok, with this fix it works in Firefox. But I've discovered that Chrome and Opera adds some random 0 z-indexes in addition to "auto" values. So this code will do the trick: var zIndex = this.input.parents().filter(function() {
return $(this).css('z-index') != 'auto' && $(this).css('z-index') != 0;
}).first().css('z-index'); |
Didn't see your reply and was about to ping you about this heh Pretty awesome, I'm packing that with a couple of bugfixes in rc3 ASAP. |
Please could you try with 2.2.0rc4 ? I've included your fix and credited you in CHANGELOG. Thanks |
The problem with z-index is fixed with 2.2.0rc4. Thank you for your time. During the tests I found another issue #431 related to the absolute positioning. |
Yes, thanks for the example ! |
I'm having this problem with jquery ui dialog. I can't see autocomplete options when writing things on the autocomplete input. Nevertheless, if i hit "enter" i get the expected result (one option selected and correctly displayed instead of the text input). I'm using django-autocomplete-light==2.2.3, jquery-ui==1.9.2, and jquery==1.10.2. I tried using django-autocomplete-light==2.1.1 and it works fine. Do you know what the problem could be? |
The problem with the way 2.1.1 works is that it's not supported in some cases in django admin. Ideally, we'd support both methods, using the overflow: hidden method for django admin and using the clearfix method for modern css integration. Pull requests would be welcome. |
I don't understand: is this still an issue in versions >= 2.2? If it is, is there any open issue for this bug? |
Details in the CHANGELOG would help ? |
There is a comment in CHANGELOG that says:
What i understand is that this bug was fixed in version 2.2.0rc3. But with version 2.2.3 i'm still getting this bug. So i don't understand if it is this bug that wasn't fixed or if it is a problem with my code. |
I was talking about: 2.2.0rc1
being
there's |
Note, there might be more info, please consider reading the whole
2.2.0rc1 CHANGELOG :)
|
When I use autocomplete input with bootstrap modal dialog, choices are displayed behind the dialog.
However, it is just fine in previous release (2.1.1).
The text was updated successfully, but these errors were encountered: