mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-08 23:19:40 +01:00
Tables: Fixed TableAngledHeadersRow() creating an infinite horizontal scrolling region when the table is hosted in a viewport with negative coordinates.
This commit is contained in:
parent
d0021e1621
commit
e7e898ea17
@ -51,6 +51,9 @@ Other changes:
|
|||||||
value is being modified. (#8242)
|
value is being modified. (#8242)
|
||||||
- InputText: Added sanity check to detect some cases of passing a non
|
- InputText: Added sanity check to detect some cases of passing a non
|
||||||
zero-terminated input buffer.
|
zero-terminated input buffer.
|
||||||
|
- Tables: Fixed TableAngledHeadersRow() creating an infinite horizontal
|
||||||
|
scrolling region when the table is hosted in a viewport with negative
|
||||||
|
coordinates.
|
||||||
- Tables, MultiSelect: Fixed an issue where column width may be mismeasured
|
- Tables, MultiSelect: Fixed an issue where column width may be mismeasured
|
||||||
when calling BeginMultiSelect() while inside a table. (#8250)
|
when calling BeginMultiSelect() while inside a table. (#8250)
|
||||||
- Drags: Added ImGuiSliderFlags_NoSpeedTweaks flag to disable keyboard
|
- Drags: Added ImGuiSliderFlags_NoSpeedTweaks flag to disable keyboard
|
||||||
|
@ -3299,7 +3299,7 @@ void ImGui::TableAngledHeadersRowEx(ImGuiID row_id, float angle, float max_label
|
|||||||
const ImVec2 align = g.Style.TableAngledHeadersTextAlign;
|
const ImVec2 align = g.Style.TableAngledHeadersTextAlign;
|
||||||
|
|
||||||
// Draw background and labels in first pass, then all borders.
|
// Draw background and labels in first pass, then all borders.
|
||||||
float max_x = 0.0f;
|
float max_x = -FLT_MAX;
|
||||||
for (int pass = 0; pass < 2; pass++)
|
for (int pass = 0; pass < 2; pass++)
|
||||||
for (int order_n = 0; order_n < data_count; order_n++)
|
for (int order_n = 0; order_n < data_count; order_n++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user