mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
Misc merge/small stuff from docking to reduce drift.
Among other things: - mergedcfd23957(#7940, #7823), also seeac64b6563(#6716): moved above on 2023/08/14 in both branches. - moving the RenderDimmedBackgrounds() call, fromf422e782, see676497feintently undoingac64b65-> confusing. (#6716)
This commit is contained in:
parent
30dcdcbe73
commit
a93f7db875
5 changed files with 46 additions and 38 deletions
|
|
@ -8557,9 +8557,9 @@ bool ImGui::BeginViewportSideBar(const char* name, ImGuiViewport* viewport_p, Im
|
|||
|
||||
// Report our size into work area (for next frame) using actual window size
|
||||
if (dir == ImGuiDir_Up || dir == ImGuiDir_Left)
|
||||
viewport->BuildWorkOffsetMin[axis] += axis_size;
|
||||
viewport->BuildWorkInsetMin[axis] += axis_size;
|
||||
else if (dir == ImGuiDir_Down || dir == ImGuiDir_Right)
|
||||
viewport->BuildWorkOffsetMax[axis] -= axis_size;
|
||||
viewport->BuildWorkInsetMax[axis] += axis_size;
|
||||
}
|
||||
|
||||
window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue