Description
Sorry to keep bothering...
Version/Branch of Dear ImGui:
latest release
Back-end/Renderer/OS: (if the question is related to inputs or rendering, otherwise delete this section)
mac opengl 3.3
My Issue/Question:
When I create a window with columns and flags:
ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings
it animates to the width of my application. Then, as soon as I drag it to the right so the right border of the window hits the right border of my application, it animates to be what seems to be a minimum width. I can drag it left all I want and then move it around as long as the right edge doesn't touch and it won't shrink. After it shrinks, if I drag it back to the left, it will grow back to full width.
This worked with imgui code from a while ago. It would just make a window of a nice reasonable width and it would stay that way.
(you may want to mute, my trackpad clicks are kind of loud)
https://www.youtube.com/watch?v=xSv6hdCBrj8
I removed code until I got to the point it was just calling my columns helper code:
void Gui::
columns(const char * column_region_id, std::vector<std::string> const & column_names, std::function<void(void)> column_builder)
{
NO_OP_IF_NO_GRAPHICS;
ImGui::Columns(static_cast<int>(column_names.size()), column_region_id);
ImGui::Separator();
for (auto column_name : column_names) {
ImGui::TextUnformatted(column_name.c_str());
ImGui::NextColumn();
}
ImGui::Separator();
try {
column_builder();
} catch (...) {
ImGui::Columns(1);
ImGui::Separator();
throw;
}
ImGui::Columns(1);
ImGui::Separator();
}
Activity