Giter Club home page Giter Club logo

Comments (3)

ocornut avatar ocornut commented on June 20, 2024 1

Thank you. I agree this is an issue.
I am a little surprised this hasn't been caught before. Our demo code call the tooltip after EndDisabled().

In general, I think nested windows that are not child window shouldn't inherit disabled-ness:

ImGui::Begin("Example Bug");
ImGui::BeginDisabled();
ImGui::Begin("Nested window call");
ImGui::End();
ImGui::EndDisabled();
ImGui::End();

from imgui.

ocornut avatar ocornut commented on June 20, 2024

This is now fixed/supported with f953ebf !
Also added a test ocornut/imgui_test_engine@ac5b5ed

(The "misc_recover" test is also useful for this, for simplicity I had to amend ErrorCheckEndWindowRecover() with a tweak because StackSizesOnBegin.SetToContextState(&g) is set before calling internal BeginDisabledOverrideReenable(), but this could be reworked.)

from imgui.

DanielGibson avatar DanielGibson commented on June 20, 2024

Wow, that was quick, thank you very much! :)

from imgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.