diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 2 |
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); |