Coder Social home page Coder Social logo

Comments (4)

fauder avatar fauder commented on May 29, 2024 1

I did try ImGui::TableSetColumnWidth() but could not get it to work.

Without submitting explicit/specific details about what you attempted so it is difficult to help you. Even written in good faith, textual explanations are often ambiguous if not erroneous. It's better to wait for the MCVE exhibiting an issue.

You're completely right and I apologize for the lack of MCVE for the moment. I was pressed for time (and still am) and could not strip code in time to produce the MCVE. I'll get to it ASAP.

from imgui.

fauder avatar fauder commented on May 29, 2024

I'll edit the main post when I have the MCVE.

from imgui.

ocornut avatar ocornut commented on May 29, 2024

Hello,

Without submitting explicit/specific details about what you attempted so it is difficult to help you. Even written in good faith, textual explanations are often ambiguous if not erroneous. It's better to wait for the MCVE exhibiting an issue.

Auto calculation of column widths does not seem to be working.

What have you tried? It's not clear. Are you measuring the maximum expected width of all submitted values? I don't see what that would be any different between columns and tables.

The problem with this is I could not find a way to set column widths post-humously; From what I gathered looking at the sources, the layout is locked and modification of column width is not permitted after the header row is submitted.

It's locked for the frame as it should be - same as Columns, but if you modify it it'll be taken into account for the next frame.
Have you tried calling ImGui::TableSetColumnWidth() ?

from imgui.

fauder avatar fauder commented on May 29, 2024

While trying to produce MCVE, I got it to work 😅

I don't know what I did wrong before but caching max. column widths calculated during a frame and feeding it to ImGui::TableSetupColumn() calls the next frame works as intended.

Thank you for your time and for authoring ImGui as well 🤘
Cheers!

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.