ソースを参照

UI: Set a maximum height to properties scroll area

When a source has a lot of properties, the scroll area containing them
would try to expand to fit them all, often leaving the preview area
super squished.  So this just sets a maximum height for the properties
scroll area.
jp9000 10 年 前
コミット
290975e3a0
1 ファイル変更1 行追加0 行削除
  1. 1 0
      obs/window-basic-properties.cpp

+ 1 - 0
obs/window-basic-properties.cpp

@@ -61,6 +61,7 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
 
 
 	layout()->addWidget(view);
 	layout()->addWidget(view);
 	layout()->setAlignment(view, Qt::AlignBottom);
 	layout()->setAlignment(view, Qt::AlignBottom);
+	view->setMaximumHeight(250);
 	view->setMinimumHeight(150);
 	view->setMinimumHeight(150);
 	view->show();
 	view->show();