Remove set item spacing
This commit is contained in:
parent
27ed96e13b
commit
d157e983c4
|
@ -6,8 +6,6 @@
|
||||||
#include "logs.h"
|
#include "logs.h"
|
||||||
|
|
||||||
static inline void render_table(ImFont* monospace_font, bool* autoscrolling) {
|
static inline void render_table(ImFont* monospace_font, bool* autoscrolling) {
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0));
|
|
||||||
|
|
||||||
ImGui::TableSetupScrollFreeze(0, 1);
|
ImGui::TableSetupScrollFreeze(0, 1);
|
||||||
ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None);
|
ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None);
|
||||||
ImGui::TableSetupColumn("Message", ImGuiTableColumnFlags_None);
|
ImGui::TableSetupColumn("Message", ImGuiTableColumnFlags_None);
|
||||||
|
@ -35,7 +33,6 @@ static inline void render_table(ImFont* monospace_font, bool* autoscrolling) {
|
||||||
clipper.End();
|
clipper.End();
|
||||||
|
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
ImGui::PopStyleVar();
|
|
||||||
|
|
||||||
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {
|
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {
|
||||||
*autoscrolling = true;
|
*autoscrolling = true;
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
static inline void render_table(ImFont* monospace_font, std::vector<LogcatEntry>& logcat_entries, std::vector<size_t>& filtered_logcat_entry_offsets) {
|
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::TableSetupScrollFreeze(0, 1);
|
||||||
ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None);
|
ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None);
|
||||||
ImGui::TableSetupColumn("User", ImGuiTableColumnFlags_None);
|
ImGui::TableSetupColumn("User", ImGuiTableColumnFlags_None);
|
||||||
|
@ -47,7 +45,6 @@ static inline void render_table(ImFont* monospace_font, std::vector<LogcatEntry>
|
||||||
clipper.End();
|
clipper.End();
|
||||||
|
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
ImGui::PopStyleVar();
|
|
||||||
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {
|
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {
|
||||||
ImGui::SetScrollHereY(1.0f);
|
ImGui::SetScrollHereY(1.0f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue