Based on https://github.com/ocornut/imgui_club/pull/5

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
---
 src/intel/tools/imgui/imgui_memory_editor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/tools/imgui/imgui_memory_editor.h 
b/src/intel/tools/imgui/imgui_memory_editor.h
index 914f03bb8bb..8fa8212f609 100644
--- a/src/intel/tools/imgui/imgui_memory_editor.h
+++ b/src/intel/tools/imgui/imgui_memory_editor.h
@@ -174,7 +174,7 @@ struct MemoryEditor
         ImGuiStyle& style = ImGui::GetStyle();
 
         const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y 
+ ImGui::GetFrameHeightWithSpacing(); // 1 separator, 1 input text
-        ImGui::BeginChild("##scrolling", ImVec2(0, -footer_height_to_reserve));
+        ImGui::BeginChild("##scrolling", ImVec2(0, -footer_height_to_reserve), 
false, ImGuiWindowFlags_NoMove);
         ImDrawList* draw_list = ImGui::GetWindowDrawList();
 
         ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0));
-- 
2.18.0

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to