message: [GUI] Open the app's window in the smallest, currently available, size.
diff: #include "qt/pivx/defaultdialog.h"
  #include "qt/pivx/settings/settingsfaqwidget.h"
  +#include <QDesktopWidget>
  #include <QHBoxLayout>
  #include <QVBoxLayout>
  #include <QApplication>
  @@ -42,7 +43,16 @@ PIVXGUI::PIVXGUI(const NetworkStyle* networkStyle, QWidget* parent) :
  /* Open CSS when configured */
  this->setStyleSheet(GUIUtil::loadStyleSheet());
  this->setMinimumSize(BASE_WINDOW_WIDTH, BASE_WINDOW_MIN_HEIGHT);
  - GUIUtil::restoreWindowGeometry("nWindow", QSize(BASE_WINDOW_WIDTH, BASE_WINDOW_HEIGHT), this);
  +
  +
  + // Adapt screen size
  + QRect rec = QApplication::desktop()->screenGeometry();
  + int adaptedHeight = (rec.height() < BASE_WINDOW_HEIGHT) ? BASE_WINDOW_MIN_HEIGHT : BASE_WINDOW_HEIGHT;
  + GUIUtil::restoreWindowGeometry(
  + "nWindow",
  + QSize(BASE_WINDOW_WIDTH, adaptedHeight),
  + this
  + );
  #ifdef ENABLE_WALLET
  /* if compiled with wallet support, -disablewallet can still disable the wallet */
  