summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.com>2016-02-14 20:44:00 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-02-22 09:05:20 +0000
commitbcaee2b0149651173cc93763231c47ff2f5a55c2 (patch)
tree38d274b418bf5586f83dccd49ae1c023a4054e50 /libreofficekit
parent3422b8804c2459fdd7f870ee300f2a81f3365d6c (diff)
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>
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 655d73adb42e..11589dd3e7bc 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2508,6 +2508,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));
}
@@ -2519,6 +2520,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().