summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-08-04 06:48:18 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-08-04 06:48:18 +0300
commita3cfeba41e5cd25d9e2e2c8022281b0dbdb82407 (patch)
tree8474a6e9b2a0665ff05ad55482def1b08466fa3d /src/ui
parent79ea5742327771a7cca91815d5630775d44c549d (diff)
DocumentWidget: Slightly wider minimum borders
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index e1be27c2..6a5ed172 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -493,7 +493,7 @@ static int documentWidth_DocumentWidget_(const iDocumentWidget *d) {
493 const iPrefs * prefs = prefs_App(); 493 const iPrefs * prefs = prefs_App();
494 const int minWidth = 50 * gap_UI; /* lines must fit a word at least */ 494 const int minWidth = 50 * gap_UI; /* lines must fit a word at least */
495 const float adjust = iClamp((float) bounds.size.x / gap_UI / 11 - 12, 495 const float adjust = iClamp((float) bounds.size.x / gap_UI / 11 - 12,
496 -2.0f, 10.0f); /* adapt to width */ 496 -1.0f, 10.0f); /* adapt to width */
497 //printf("%f\n", adjust); fflush(stdout); 497 //printf("%f\n", adjust); fflush(stdout);
498 return iMini(iMax(minWidth, bounds.size.x - gap_UI * (d->pageMargin + adjust) * 2), 498 return iMini(iMax(minWidth, bounds.size.x - gap_UI * (d->pageMargin + adjust) * 2),
499 fontSize_UI * prefs->lineWidth * prefs->zoomPercent / 100); 499 fontSize_UI * prefs->lineWidth * prefs->zoomPercent / 100);