Remove set item spacing

This commit is contained in:
blankie 2023-01-30 12:14:15 +07:00
parent 27ed96e13b
commit d157e983c4
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 0 additions and 6 deletions

View File

@ -6,8 +6,6 @@
#include "logs.h"
static inline void render_table(ImFont* monospace_font, bool* autoscrolling) {
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0));
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None);
ImGui::TableSetupColumn("Message", ImGuiTableColumnFlags_None);
@ -35,7 +33,6 @@ static inline void render_table(ImFont* monospace_font, bool* autoscrolling) {
clipper.End();
ImGui::PopFont();
ImGui::PopStyleVar();
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {
*autoscrolling = true;

View File

@ -8,8 +8,6 @@
#include "main.h"
static inline void render_table(ImFont* monospace_font, std::vector<LogcatEntry>& logcat_entries, std::vector<size_t>& filtered_logcat_entry_offsets) {
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0));
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None);
ImGui::TableSetupColumn("User", ImGuiTableColumnFlags_None);
@ -47,7 +45,6 @@ static inline void render_table(ImFont* monospace_font, std::vector<LogcatEntry>
clipper.End();
ImGui::PopFont();
ImGui::PopStyleVar();
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {
ImGui::SetScrollHereY(1.0f);
}