Skip to content

Commit

Permalink
DPI Scale errors
Browse files Browse the repository at this point in the history
.. overview window constraints on size

.. workout editor hide toolbar when small
  • Loading branch information
liversedge committed Feb 1, 2020
1 parent 2ef1f40 commit 8ea4524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Charts/OverviewWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ OverviewWindow::eventFilter(QObject *, QEvent *event)

// min max width
if (setcolumn < 800) setcolumn = 800;
if (setcolumn > 2400) setcolumn = 2400;
if (setcolumn > 4400) setcolumn = 4400;

columns[stateData.xresize.column] = setcolumn;

Expand Down
2 changes: 1 addition & 1 deletion src/Train/WorkoutWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void
WorkoutWindow::resizeEvent(QResizeEvent *)
{
// show or hide toolbar if big enough
if (!recording && height() > MINTOOLHEIGHT) toolbar->show();
if (!recording && height() > (MINTOOLHEIGHT*dpiYFactor)) toolbar->show();
else toolbar->hide();
}

Expand Down

0 comments on commit 8ea4524

Please sign in to comment.