Comments (4)
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.
I'll edit the main post when I have the MCVE.
from imgui.
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.
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)
- How I can do something when a widget changed its data HOT 1
- Inconsistent result between AddImageRounded and AddImage
- how to zoom a picture hard edges HOT 2
- Docking DockBuilder with DockSpaceOverViewport
- Rendering result on ImGui::Image is wrong during resizing ImGuiViewport HOT 1
- Custom ini setting handler saves settings but does not load settings HOT 2
- How to handle key events properly. HOT 7
- "Hold SHIFT to enable Docking window" tooltip inherits `NextWindowData` HOT 1
- SDL3 backend text input does not work HOT 2
- How to create a very big table? HOT 1
- Standalone ImDrawList/ImDrawCmd/Low level renderer API HOT 2
- `TextWrapped` will cause `too-many-vertices` error for long single-line strings HOT 2
- How do I load custom fonts in memory? HOT 2
- PDIRECT3D11 HOT 1
- Is it possible to create non-square buttons? HOT 4
- Image canvas implementation HOT 15
- Unable to use Menu HOT 3
- Gallery: Post your screenshots / code here (PART 19) HOT 11
- Drag and Drop from Menubar HOT 5
- What's the proper way to render custom text or custom items in the "key"/"label" of a TreeNode? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.