Skip to content

Commit

Permalink
autosize edge views
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Feb 14, 2024
1 parent 4820d7f commit 5312761
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vstgui/lib/cscrollview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ void CScrollView::setEdgeView (Edge edge, CView* view)
vs.setWidth (getVisibleClientRect ().getWidth ());
view->setViewSize (vs);
}
view->setAutosizeFlags (kAutosizeTop | kAutosizeLeft | kAutosizeRight);
CViewContainer::addView (view, sc);
}
break;
Expand All @@ -760,6 +761,7 @@ void CScrollView::setEdgeView (Edge edge, CView* view)
vs.setHeight (getVisibleClientRect ().getHeight ());
view->setViewSize (vs);
}
view->setAutosizeFlags (kAutosizeLeft | kAutosizeTop | kAutosizeBottom);
CViewContainer::addView (view, sc);
}
}
Expand Down Expand Up @@ -951,4 +953,3 @@ void CScrollView::viewWillDelete (CView* view)
}

} // VSTGUI

0 comments on commit 5312761

Please sign in to comment.