-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update to egui 0.29 #155
Update to egui 0.29 #155
Conversation
Also fixes some deprecations and lints
Thank you for the PR! I think the problem in save file mode is that there is something wrong with the calculation of the width of the file name input. I'll take a look too Edit: nvm the problem is the height and not the width |
Do you have a solution for the problem, or should I keep looking?
|
I'm currently debugging, but haven't found a fix yet. Is the height of the text edit fields specified somewhere in the styles/or visuals? |
Height >= |
Not sure, I was wondering as well. I think it depends on the font configuration, so we would have to look at that to determine the size, I belive. The changelog talks about a new sizing pass, not sure if utilizing that would be a better long-term solution to avoid such issues. I asked Emil on discord what he thinks about this problem, as it's technically a regression. I'm waiting on response. |
At first glance, the sizing pass looks pretty useful, but I also have no idea how to use it at the moment. Found the following TODO: // TODO(emilk): return full outer_rect in `TextEditOutput`.
// Can't do it now because this fix is ging into a patch release.
let outer_rect = output.response.rect;
let inner_rect = outer_rect - margin;
output.response.rect = inner_rect; Maybe the problem has something to do with that. As a workaround, we could use |
That seems to be from a commit from 6 months ago, so I'm not sure how relevant it is, since the problem didn't seem to manifest in 0.28. |
True, I hadn't seen that. Ye, then that has nothing to do with it |
Emil asked me to file a bug report, so I did. |
Just as an update, the issue has been fixed on egui git master. |
Thanks for the update! Will create a new version for the file dialog once the egui patch is released |
egui |
Also fixes some deprecations and lints
Known problems
Gonna have to look into the cause of that.