-
Notifications
You must be signed in to change notification settings - Fork 20
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
Problem having result window appear above other controls #1
Comments
Could you share a screenshot to illustrate the problem? I'm not fully understanding what you're saying. |
I wanted to send a screenshot but for some reason windows wont cooperate. I will try to rephrase: So if we have somthing like (pseudocode): void OnGUI() { The dropdown widow created by your control to show the autocomplete results gets drawn under the scrollview and buttons. I made quick sketch. The gray area is the editor window |
I modified one of your examples to show the problem see the attachment. Note that I had to rename it to .txt to be able to attach it. |
After small research I did, the elements are rendered in the order of the code, without the possibility of defining z-index parameters as in CSS. Workaround: In AutocompleteSearchField.cs, add to line 144:
I know it's not the best behaivour and removes the "floating" effect, but works fine. |
The result window appears bellow the other controls in my editor window.
Anyway to fix this? I could modify your code to take a rect but I just wasted 2 days modifying another implementation of a search field for the same problem and I ended up having issues with the mouse clicks going through the result popup and initiating clicks on controls under it instead.
Same thing will happen here if I go that route.
Suggestions?
The text was updated successfully, but these errors were encountered: