diff --git a/src/magic.cpp b/src/magic.cpp index a5e591525165c..25833e56fdb34 100644 --- a/src/magic.cpp +++ b/src/magic.cpp @@ -3194,8 +3194,9 @@ void spellbook_callback::refresh( uilist *menu ) { ImGui::TableSetColumnIndex( 2 ); ImVec2 info_size = ImGui::GetContentRegionAvail(); - if( ImGui::BeginChild( "spellbook info", info_size, ImGuiChildFlags_None, - ImGuiWindowFlags_AlwaysAutoResize ) ) { + if( ImGui::BeginChild( "spellbook info", info_size, + ImGuiChildFlags_AlwaysAutoResize | ImGuiChildFlags_AutoResizeX | ImGuiChildFlags_AutoResizeY, + ImGuiWindowFlags_None ) ) { if( menu->selected >= 0 && static_cast( menu->selected ) < spells.size() ) { draw_spellbook_info( spells[menu->selected] ); }