Tables: work on background draw channel handling (amend "create a separate background draw channel") + Selectable disable spacing when spanning.

This commit is contained in:
ocornut
2020-11-04 22:17:58 +01:00
parent fe6131168a
commit 507db499e4
4 changed files with 31 additions and 24 deletions

View File

@ -5953,7 +5953,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
ImRect bb(min_x, pos.y, text_max.x, text_max.y);
if ((flags & ImGuiSelectableFlags_NoPadWithHalfSpacing) == 0)
{
const float spacing_x = style.ItemSpacing.x;
const float spacing_x = span_all_columns ? 0.0f : style.ItemSpacing.x;
const float spacing_y = style.ItemSpacing.y;
const float spacing_L = IM_FLOOR(spacing_x * 0.50f);
const float spacing_U = IM_FLOOR(spacing_y * 0.50f);