mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 11:57:00 +00:00
This commit is contained in:
parent
23ef6c149e
commit
aa41f16589
@ -62,6 +62,7 @@ Other Changes:
|
|||||||
- InputText: made double-click select word, triple-line select line. Word delimitation logic differs
|
- InputText: made double-click select word, triple-line select line. Word delimitation logic differs
|
||||||
slightly from the one used by CTRL+arrows. (#2244)
|
slightly from the one used by CTRL+arrows. (#2244)
|
||||||
- InputText: fixed ReadOnly flag preventing callbacks from receiving the text buffer. (#4762) [@actondev]
|
- InputText: fixed ReadOnly flag preventing callbacks from receiving the text buffer. (#4762) [@actondev]
|
||||||
|
- Separator: fixed cover all columns while called inside a table. (#4787)
|
||||||
- Clipper: currently focused item is automatically included in clipper range.
|
- Clipper: currently focused item is automatically included in clipper range.
|
||||||
Fixes issue where e.g. drag and dropping an item and scrolling ensure the item source location is
|
Fixes issue where e.g. drag and dropping an item and scrolling ensure the item source location is
|
||||||
still submitted. (#3841, #1725) [@GamingMinds-DanielC, @ocornut]
|
still submitted. (#3841, #1725) [@GamingMinds-DanielC, @ocornut]
|
||||||
|
@ -1391,11 +1391,20 @@ void ImGui::SeparatorEx(ImGuiSeparatorFlags flags)
|
|||||||
if (g.GroupStack.Size > 0 && g.GroupStack.back().WindowID == window->ID)
|
if (g.GroupStack.Size > 0 && g.GroupStack.back().WindowID == window->ID)
|
||||||
x1 += window->DC.Indent.x;
|
x1 += window->DC.Indent.x;
|
||||||
|
|
||||||
|
// FIXME-WORKRECT: In theory we should simply be using WorkRect.Min.x/Max.x everywhere but it isn't aesthetically what we want,
|
||||||
|
// need to introduce a variant of WorkRect for that purpose. (#4787)
|
||||||
|
if (ImGuiTable* table = g.CurrentTable)
|
||||||
|
{
|
||||||
|
x1 = table->Columns[table->CurrentColumn].MinX;
|
||||||
|
x2 = table->Columns[table->CurrentColumn].MaxX;
|
||||||
|
}
|
||||||
|
|
||||||
ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL;
|
ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL;
|
||||||
if (columns)
|
if (columns)
|
||||||
PushColumnsBackground();
|
PushColumnsBackground();
|
||||||
|
|
||||||
// We don't provide our width to the layout so that it doesn't get feed back into AutoFit
|
// We don't provide our width to the layout so that it doesn't get feed back into AutoFit
|
||||||
|
// FIXME: This prevents ->CursorMaxPos based bounding box evaluation from working (e.g. TableEndCell)
|
||||||
const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness_draw));
|
const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness_draw));
|
||||||
ItemSize(ImVec2(0.0f, thickness_layout));
|
ItemSize(ImVec2(0.0f, thickness_layout));
|
||||||
const bool item_visible = ItemAdd(bb, 0);
|
const bool item_visible = ItemAdd(bb, 0);
|
||||||
@ -1424,7 +1433,7 @@ void ImGui::Separator()
|
|||||||
|
|
||||||
// Those flags should eventually be overridable by the user
|
// Those flags should eventually be overridable by the user
|
||||||
ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal;
|
ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal;
|
||||||
flags |= ImGuiSeparatorFlags_SpanAllColumns;
|
flags |= ImGuiSeparatorFlags_SpanAllColumns; // NB: this only applies to legacy Columns() api as they relied on Separator() a lot.
|
||||||
SeparatorEx(flags);
|
SeparatorEx(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user