mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-12 19:14:43 +00:00
Scrollable Table in Tab does not properly contribute to initial window size #6510
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#6510
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version: 1.89.6
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32.cpp + imgui_impl_dx11.cpp
My Issue/Question:
Hello, I am currently trying to add a table to a tab inside a small window. The window does only include tabs with these tables. I also use the
ScrollYflag on the table as I would like to freeze the HeadersRow.The problem is that when the window is opened it does no automatically size correctly and is displayed very small.
When I put the table directly in the window without tabs it does auto size correctly on opening the window.
It also works without the
ScrollYflag. I tried giving anouter_sizewith a non zero x value to theBeginTablefunction but that means the table is not filling the full horizontal space of the window when it is resized which is not ideal.I could give a window a reasonable initial size but I was wondering if the not working auto size was a bug as it works without the tabs.
Here is a small example of the problem (I added NoSavedSettings to make sure it always behaves like the first opening after restart):
This is what it looks for me:


This is what it looks without the tabs:
Hello,
I have fixed this with
3aceb61+bed492dAnd added regression tests in
ocornut/imgui_test_engine@8855e8cfe6Thanks for reporting.