Disable scrollbar for source view window.

This commit is contained in:
Bartosz Taudul 2020-04-12 17:11:51 +02:00
parent ef56c7fa7c
commit 3398c969ac

View File

@ -12982,7 +12982,7 @@ void View::DrawTextEditor()
{ {
ImGui::SetNextWindowSize( ImVec2( 700, 800 ), ImGuiCond_FirstUseEver ); ImGui::SetNextWindowSize( ImVec2( 700, 800 ), ImGuiCond_FirstUseEver );
bool show = true; bool show = true;
ImGui::Begin( "Source view", &show ); ImGui::Begin( "Source view", &show, ImGuiWindowFlags_NoScrollbar );
m_sourceView->Render( m_worker ); m_sourceView->Render( m_worker );
ImGui::End(); ImGui::End();
if( !show ) m_sourceViewFile = nullptr; if( !show ) m_sourceViewFile = nullptr;