From e29319f743e7fa24911db7df9c1cb8e5b401b6e3 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 6 Nov 2021 06:21:31 +0200 Subject: DocumentWidget: Fixed incorrect document width --- src/ui/documentwidget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ui/documentwidget.c') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 8c24d4a9..60662b03 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -1107,12 +1107,11 @@ static void documentWasChanged_DocumentWidget_(iDocumentWidget *d) { void setSource_DocumentWidget(iDocumentWidget *d, const iString *source) { setUrl_GmDocument(d->doc, d->mod.url); - const int docWidth = documentWidth_DocumentWidget_(d); - const int outsideMargin = (width_Widget(d) - docWidth) / 2; + const int docWidth = documentWidth_DocumentWidget_(d); setSource_GmDocument(d->doc, source, docWidth, - outsideMargin, + width_Widget(d), isFinished_GmRequest(d->request) ? final_GmDocumentUpdate : partial_GmDocumentUpdate); setWidth_Banner(d->banner, docWidth); -- cgit v1.2.3