diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 3455db64..6d9c3451 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -168,8 +168,12 @@ static iRect documentBounds_DocumentWidget_(const iDocumentWidget *d) { | |||
168 | iRect rect; | 168 | iRect rect; |
169 | rect.size.x = documentWidth_DocumentWidget_(d); | 169 | rect.size.x = documentWidth_DocumentWidget_(d); |
170 | rect.pos.x = bounds.size.x / 2 - rect.size.x / 2; | 170 | rect.pos.x = bounds.size.x / 2 - rect.size.x / 2; |
171 | rect.pos.y = top_Rect(bounds) + margin; | 171 | rect.pos.y = top_Rect(bounds); |
172 | rect.size.y = height_Rect(bounds) - 2 * margin; | 172 | rect.size.y = height_Rect(bounds) - margin; |
173 | if (!hasSiteBanner_GmDocument(d->doc)) { | ||
174 | rect.pos.y += margin; | ||
175 | rect.size.y -= margin; | ||
176 | } | ||
173 | iInt2 docSize = addY_I2(size_GmDocument(d->doc), 0 /*-lineHeight_Text(banner_FontId) * 2*/); | 177 | iInt2 docSize = addY_I2(size_GmDocument(d->doc), 0 /*-lineHeight_Text(banner_FontId) * 2*/); |
174 | if (docSize.y < rect.size.y) { | 178 | if (docSize.y < rect.size.y) { |
175 | /* Center vertically if short. */ | 179 | /* Center vertically if short. */ |