diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-10 19:43:39 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-10 19:46:02 +0300 |
commit | b2199d17a1ec8e7f06eda41633f83818dca996fe (patch) | |
tree | 78647d7d60425440659edf2bcd6c798d985a9370 | |
parent | bc4cd14c11af15b2eea98ec17e5985cd8f0a1bbb (diff) |
DocumentWidget: Fixed content positioning
-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 90c270fc..b088fa74 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -176,7 +176,7 @@ static iRect documentBounds_DocumentWidget_(const iDocumentWidget *d) { | |||
176 | const int margin = gap_UI * d->pageMargin; | 176 | const int margin = gap_UI * d->pageMargin; |
177 | iRect rect; | 177 | iRect rect; |
178 | rect.size.x = documentWidth_DocumentWidget_(d); | 178 | rect.size.x = documentWidth_DocumentWidget_(d); |
179 | rect.pos.x = bounds.size.x / 2 - rect.size.x / 2; | 179 | rect.pos.x = mid_Rect(bounds).x - rect.size.x / 2; |
180 | rect.pos.y = top_Rect(bounds); | 180 | rect.pos.y = top_Rect(bounds); |
181 | rect.size.y = height_Rect(bounds) - margin; | 181 | rect.size.y = height_Rect(bounds) - margin; |
182 | if (!hasSiteBanner_GmDocument(d->doc)) { | 182 | if (!hasSiteBanner_GmDocument(d->doc)) { |