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 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)) { |