Fix position of source separator line.

This commit is contained in:
Bartosz Taudul 2020-06-06 20:50:24 +02:00
parent 9c49ee3dd3
commit c384ec132f

View File

@ -1386,7 +1386,7 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
if( m_font ) ImGui::PushFont( m_font ); if( m_font ) ImGui::PushFont( m_font );
auto draw = ImGui::GetWindowDrawList(); auto draw = ImGui::GetWindowDrawList();
const auto wpos = ImGui::GetWindowPos(); const auto wpos = ImGui::GetWindowPos() - ImVec2( ImGui::GetCurrentWindowRead()->Scroll.x, 0 );
const auto wh = ImGui::GetWindowHeight(); const auto wh = ImGui::GetWindowHeight();
const auto ty = ImGui::GetFontSize(); const auto ty = ImGui::GetFontSize();
const auto ts = ImGui::CalcTextSize( " " ).x; const auto ts = ImGui::CalcTextSize( " " ).x;