obs-studio/obs/vertical-scroll-area.cpp

9 lines
185 B
C++

#include <QResizeEvent>
#include "vertical-scroll-area.hpp"
void VScrollArea::resizeEvent(QResizeEvent *event)
{
if (!!widget())
widget()->setMaximumWidth(event->size().width());
}