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
Tested with example_glfw_metal, example_glfw_opengl3 & custom
Compiler, OS:
macOS
Full config/build information:
No response
Details:
Commit a340718 (1.90) draws the bottom and right borders of tables offset by 1px, beyond the expected area and potentially past the window's clip rect.
They're invisible when the table spans all available space within a child window or a normal window with no padding.
BeginTable(outer_size = ImVec2(100, 100)) produces a 101x101px table.
Screenshots/Video:
Invisible/clipped borders:
1px bigger than child window borders and item frames = invading into window padding and item spacing:
(Zoomed 3x)
Minimal, Complete and Verifiable Example code:
auto table = [] (ImVec2 size = {}) {
if(ImGui::BeginTable("table", 2, ImGuiTableFlags_Borders /* with an S */ | ImGuiTableFlags_ScrollY, size)) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
ImGui::Text("Hello, world!");
ImGui::EndTable();
}
};
ImGui::Begin("Case 1");
ImGui::BeginChild("child");
table();
ImGui::EndChild();
ImGui::End();
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0);
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, { 0, 0 });
ImGui::Begin("Case 2");
table();
ImGui::End();
ImGui::PopStyleVar(2);
ImGui::Begin("Case 3");
ImGui::BeginChild("child", { 0, 16 }, ImGuiChildFlags_Border /* without an S */); ImGui::EndChild();
table({ 0, 24 });
ImGui::Button("Test", { -FLT_MIN, 0 });
ImGui::End();
The text was updated successfully, but these errors were encountered:
Version/Branch of Dear ImGui:
1.90 - 1.90.4, since a340718
Back-ends:
Tested with example_glfw_metal, example_glfw_opengl3 & custom
Compiler, OS:
macOS
Full config/build information:
No response
Details:
Commit a340718 (1.90) draws the bottom and right borders of tables offset by 1px, beyond the expected area and potentially past the window's clip rect.
They're invisible when the table spans all available space within a child window or a normal window with no padding.
BeginTable(outer_size = ImVec2(100, 100))
produces a 101x101px table.Screenshots/Video:
Invisible/clipped borders:
1px bigger than child window borders and item frames = invading into window padding and item spacing:
(Zoomed 3x)
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: