2
0
forked from Ivasoft/DSView

update: device dialog max height

This commit is contained in:
dreamsourcelabTAI
2022-06-09 16:04:35 +08:00
parent dfb30a8dec
commit 3b896cbea8
2 changed files with 4 additions and 4 deletions

View File

@@ -179,8 +179,8 @@ void DecoderOptionsDlg::load_options(view::DecodeTrace *trace)
float sk = QGuiApplication::primaryScreen()->logicalDotsPerInch() / 96;
int srcHeight = QGuiApplication::primaryScreen()->availableSize().height();
if (srcHeight > 500)
srcHeight = 500;
if (srcHeight > 600)
srcHeight = 600;
if (h * sk > srcHeight)
{

View File

@@ -711,8 +711,8 @@ void DeviceOptions::try_resize_scroll()
int dlgHeight = contentHeight + 95; // +bottom buttton
float sk = QGuiApplication::primaryScreen()->logicalDotsPerInch() / 96;
int srcHeight = 550;
int w = _width;
int srcHeight = 600;
int w = _width;
if (w == 0)
{