Skip to content

Commit

Permalink
fix possible wrong scrollbar setup
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Feb 15, 2024
1 parent f7fc1b4 commit 105846e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vstgui/lib/cscrollview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,13 @@ CView* CScrollView::getEdgeView (Edge edge) const
return nullptr;
}

//-----------------------------------------------------------------------------
bool CScrollView::attached (CView* parent)
{
setContainerSize (containerSize);
return CViewContainer::attached (parent);
}

//-----------------------------------------------------------------------------
bool CScrollView::addView (CView* pView, CView* pBefore)
{
Expand Down
1 change: 1 addition & 0 deletions vstgui/lib/cscrollview.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class CScrollView : public CViewContainer, public IControlListener, public ViewL
//@}

// overwrite
bool attached (CView* parent) override;
bool addView (CView* pView, CView* pBefore = nullptr) override;
bool removeView (CView* pView, bool withForget = true) override;
bool removeAll (bool withForget = true) override;
Expand Down

0 comments on commit 105846e

Please sign in to comment.