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

11 lines
220 B
C++

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