Open arnaud-neny opened 1 year ago
Maybe you could use BeginGroup/EndGroup
and then GetItemRectSize
to set SetWindowSize
. To keep the same Y read it from GetWindowSize
or GetWindowHeight
. It would be a different solution though.
Did not have any time to test it so just throwing ideas...
Maybe you could use
BeginGroup/EndGroup
and thenGetItemRectSize
to setSetWindowSize
. To keep the same Y read it fromGetWindowSize
orGetWindowHeight
. It would be a different solution though.Did not have any time to test it so just throwing ideas...
The point is to be able to resize the Y axis with the mouse, not within the code.
Version: 1.89.5 Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32.cpp + imgui_impl_dx12.cpp Compiler: VS 2022 Operating Windows 10
My Issue/Question:
I am trying to implement some windows that are able to autoresize horizontally but I want to resize these manually on the vertical axis. I have managed to make it work doing this:
AutoFitFramesX = 2;
if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || (window->AutoFitFramesX > 0 && window->AutoFitFramesY > 0))
My question is: could this modified condition have any side effect (or is it a legit fix)?