Browse Source

Remove hardcoded imgui menu width constraint (#1991)

Abhishek Madan 3 years ago
parent
commit
b7e94cb4a2
1 changed files with 0 additions and 2 deletions
  1. 0 2
      include/igl/opengl/glfw/imgui/ImGuiMenu.cpp

+ 0 - 2
include/igl/opengl/glfw/imgui/ImGuiMenu.cpp

@@ -40,10 +40,8 @@ IGL_INLINE void ImGuiMenu::draw()
 
 
 IGL_INLINE void ImGuiMenu::draw_viewer_window()
 IGL_INLINE void ImGuiMenu::draw_viewer_window()
 {
 {
-  float menu_width = 180.f * menu_scaling();
   ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
   ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
   ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
   ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
-  ImGui::SetNextWindowSizeConstraints(ImVec2(menu_width, -1.0f), ImVec2(menu_width, -1.0f));
   bool _viewer_menu_visible = true;
   bool _viewer_menu_visible = true;
   ImGui::Begin(
   ImGui::Begin(
       "Viewer", &_viewer_menu_visible,
       "Viewer", &_viewer_menu_visible,