Blob Blame History Raw
From 8b9d23f92cc6b9efef313ea155958e48d1a3faef Mon Sep 17 00:00:00 2001
From: Pranav Kant <pranavk@collabora.com>
Date: Sun, 14 Feb 2016 20:44:00 +0530
Subject: [PATCH 394/398] lokdocview: Center the widget vertically inside the
 allocation

Change-Id: I891519d54212ecd99273a54aca2a44e2d54c1933
Reviewed-on: https://gerrit.libreoffice.org/22517
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit bcaee2b0149651173cc93763231c47ff2f5a55c2)
---
 libreofficekit/source/gtk/lokdocview.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index f0dd7342c1a3..9f47138bbc37 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2506,6 +2506,7 @@ lok_doc_view_new (const gchar* pPath, GCancellable *cancellable, GError **error)
     return GTK_WIDGET (g_initable_new (LOK_TYPE_DOC_VIEW, cancellable, error,
                                        "lopath", pPath == nullptr ? LOK_PATH : pPath,
                                        "halign", GTK_ALIGN_CENTER,
+                                       "valign", GTK_ALIGN_CENTER,
                                        nullptr));
 }
 
@@ -2517,6 +2518,7 @@ SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOK
                                                        "lopointer", pOldPriv->m_pOffice,
                                                        "docpointer", pOldPriv->m_pDocument,
                                                        "halign", GTK_ALIGN_CENTER,
+                                                       "valign", GTK_ALIGN_CENTER,
                                                        nullptr));
 
     // No documentLoad(), just a createView().
-- 
2.12.0