Skip to content

Commit

Permalink
fix initial size of edge view
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Feb 14, 2024
1 parent d60c424 commit 4820d7f
Showing 1 changed file with 7 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 @@ -736,7 +736,10 @@ void CScrollView::setEdgeView (Edge edge, CView* view)
{
auto vs = view->getViewSize ();
if (vs.getWidth () < getVisibleClientRect ().getWidth ())
{
vs.setWidth (getVisibleClientRect ().getWidth ());
view->setViewSize (vs);
}
CViewContainer::addView (view, sc);
}
break;
Expand All @@ -753,12 +756,16 @@ void CScrollView::setEdgeView (Edge edge, CView* view)
{
auto vs = view->getViewSize ();
if (vs.getHeight () < getVisibleClientRect ().getHeight ())
{
vs.setHeight (getVisibleClientRect ().getHeight ());
view->setViewSize (vs);
}
CViewContainer::addView (view, sc);
}
}
}
setContainerSize (containerSize, true);
recalculateSubViews ();
if (view)
view->registerViewListener (this);
}
Expand Down

0 comments on commit 4820d7f

Please sign in to comment.