You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ScrollY flag 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 ScrollY flag. I tried giving an outer_size with a non zero x value to the BeginTable function 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):
if(ImGui::Begin("Test Window", nullptr, ImGuiWindowFlags_NoSavedSettings))
{
if(ImGui::BeginTabBar("Tabs"))
{
if (ImGui::BeginTabItem("Tab1"))
{
if (ImGui::BeginTable("Table1", 4, ImGuiTableFlags_ScrollY | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Resizable))
{
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableSetupColumn("Column1");
ImGui::TableSetupColumn("Column2");
ImGui::TableSetupColumn("Column3");
ImGui::TableSetupColumn("Column4");
ImGui::TableHeadersRow();
for (int i = 0; i < 20; ++i)
{
ImGui::TableNextColumn();
ImGui::Text("Test Entry %i", i);
}
ImGui::EndTable();
}
ImGui::EndTabItem();
}
ImGui::EndTabBar();
}
}
ImGui::End();
This is what it looks for me:
This is what it looks without the tabs:
The text was updated successfully, but these errors were encountered:
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
ScrollY
flag 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
ScrollY
flag. I tried giving anouter_size
with a non zero x value to theBeginTable
function 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:
![grafik](https://private-user-images.githubusercontent.com/11904109/244894190-8db0d7d6-42fd-4eb1-ba54-a57d10461900.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMzc2NDksIm5iZiI6MTcyMTMzNzM0OSwicGF0aCI6Ii8xMTkwNDEwOS8yNDQ4OTQxOTAtOGRiMGQ3ZDYtNDJmZC00ZWIxLWJhNTQtYTU3ZDEwNDYxOTAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIxMTU0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk0YjFmZTVkNWEwM2ZkOTQzZDlhNGI0N2M0Mjc5M2IwMTUzNmI5MGE5N2QwN2FjZGUwMGRhOTYyODc5MDlmZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7qlJp-gDi4a54H6MMHkXsjAH7hXavdLbF727RelW7OE)
![grafik](https://private-user-images.githubusercontent.com/11904109/244894265-071310be-2aef-4e16-ba08-dcdcd1954096.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMzc2NDksIm5iZiI6MTcyMTMzNzM0OSwicGF0aCI6Ii8xMTkwNDEwOS8yNDQ4OTQyNjUtMDcxMzEwYmUtMmFlZi00ZTE2LWJhMDgtZGNkY2QxOTU0MDk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIxMTU0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3OTAzM2E3NTU2YTI0MmMxMWY4YmZjNDNjYTkzNGYyNDY2NzUxY2ZjYTQyMDhhMzIyZGE5YTAwMTJhNWM2MTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zrtxhct2tu8qviO9ALAXSLYZQEypZ9O0mHG11HULwBM)
This is what it looks without the tabs:
The text was updated successfully, but these errors were encountered: