Skip to content

Commit

Permalink
Fix memory editor inside height
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jun 15, 2024
1 parent adc095e commit b36c0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/desktop-shared/imgui/memory_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void MemEditor::Draw(uint8_t* mem_data, int mem_size, int base_display_addr)
int character_cell_padding = 0;
int max_chars_per_cell = 2;
ImVec2 character_size = ImGui::CalcTextSize("0");
float footer_height = ImGui::GetFrameHeightWithSpacing() * 4;
float footer_height = (ImGui::GetFrameHeightWithSpacing() * 4) + 4;
char buf[16];

if (ImGui::BeginChild("##mem", ImVec2(ImGui::GetContentRegionAvail().x, -footer_height), ImGuiChildFlags_None, ImGuiWindowFlags_HorizontalScrollbar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoNav))
Expand Down

0 comments on commit b36c0bc

Please sign in to comment.