8000 Remove `id_source` parameter from ui.indent by FreePhoenix888 · Pull Request #4068 · emilk/egui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove id_source parameter from ui.indent #4068

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

FreePhoenix888
Copy link

I have read all and made all actions you have asked in pull request template but I am unable to run scripts/check.sh cause I am on windows 11 right now. Maybe I will do it later when I boot into ubuntu or someone else can do it later if required

All tests (except 9 ignored) are passing succesfully
image

@@ -174,7 +174,7 @@ impl CollapsingState {
) -> Option<InnerResponse<R>> {
let id = self.id;
self.show_body_unindented(ui, |ui| {
ui.indent(id, |ui| {
ui.indent(|ui| {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked to closely at this yet, but we need to make sure the id of CollapsingHeader is not ignored. This is so that two collapsing headers in the same ui won't have an id clash.

Perhaps we need a indent_with_id_source just for this use case, or add an extra ui.push_id call here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove id_source parameter for ui.indent
2 participants
0