From fc75f81ff375cd05954d57eb46b7cc560eaa5b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Wed, 22 Nov 2017 16:02:25 +0100 Subject: [PATCH] Sequencer - Display in scrollable area --- syncview.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syncview.cc b/syncview.cc index 9422bed..07dc972 100644 --- a/syncview.cc +++ b/syncview.cc @@ -289,9 +289,12 @@ bool T_SyncViewImpl_::display( ) noexcept //---------------------------------------------------------------------- // Sequencer widget & subwindows + BeginChild( "##sequencer" , ImVec2{ 0 , 0 } , false , + ImGuiWindowFlags_NoScrollWithMouse ); PushItemWidth( -1 ); sequencerWidget( ); PopItemWidth( ); + EndChild( ); End( ); switch ( sub ) { @@ -323,7 +326,7 @@ void T_SyncViewImpl_::sequencerWidget( ) noexcept auto& style( ImGui::GetStyle( ) ); const ImRect bbHeader{ cPos , cPos + ImVec2( width , SeqHeaderHeight ) }; const ImRect bbDisplay{ ImVec2{ cPos.x , bbHeader.Max.y } , - ImVec2{ cPos.x + width , GetWindowPos( ).y + ws.y - style.FramePadding.y } }; + ImVec2{ cPos.x + width , GetWindowPos( ).y + ws.y - style.FramePadding.y * 2 } }; const ImRect bbAll{ bbHeader.Min , bbDisplay.Max }; ItemSize( bbAll , style.FramePadding.y );