summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-17 13:44:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-17 22:06:22 +0100
commit16bbfcd1902e63823f6f1a491442b82024def2bc (patch)
tree6b2663ee1394604b2c9f4d6b5694535e20d812b1 /sw
parent00710aebdf339415f1fa2072ef6a76c8bb6a591a (diff)
limit table spinbuttons width for sidebar
to the same width as the paragraph sidebar spinbuttons Change-Id: I980545b4186b25cb5ada473095ece8c77f99420a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86992 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/sidebar/TableEditPanel.cxx5
-rw-r--r--sw/uiconfig/swriter/ui/sidebartableedit.ui2
2 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/uibase/sidebar/TableEditPanel.cxx b/sw/source/uibase/sidebar/TableEditPanel.cxx
index 4d09aa4c0794..dcca792db112 100644
--- a/sw/source/uibase/sidebar/TableEditPanel.cxx
+++ b/sw/source/uibase/sidebar/TableEditPanel.cxx
@@ -16,6 +16,7 @@
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <svtools/unitconv.hxx>
+#include <svx/dlgctrl.hxx>
#include <swmodule.hxx>
#include <usrpref.hxx>
@@ -146,6 +147,8 @@ void TableEditPanel::InitRowHeightToolitem()
m_xRowHeightEdit->set_min(MINLAY, FieldUnit::TWIP);
m_xRowHeightEdit->set_max(SAL_MAX_INT32, FieldUnit::TWIP);
+
+ limitWidthForSidebar(*m_xRowHeightEdit);
}
void TableEditPanel::InitColumnWidthToolitem()
@@ -158,6 +161,8 @@ void TableEditPanel::InitColumnWidthToolitem()
m_xColumnWidthEdit->set_min(MINLAY, FieldUnit::TWIP);
m_xColumnWidthEdit->set_max(SAL_MAX_INT32, FieldUnit::TWIP);
+
+ limitWidthForSidebar(*m_xColumnWidthEdit);
}
void TableEditPanel::dispose()
diff --git a/sw/uiconfig/swriter/ui/sidebartableedit.ui b/sw/uiconfig/swriter/ui/sidebartableedit.ui
index 2a67ff4acf9d..e0d369f7021a 100644
--- a/sw/uiconfig/swriter/ui/sidebartableedit.ui
+++ b/sw/uiconfig/swriter/ui/sidebartableedit.ui
@@ -29,7 +29,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="tooltip_text" translatable="yes" context="sidebatableedit|rowheight|tooltip_text">Row Height</property>
- <property name="halign">start</property>
<property name="hexpand">True</property>
<property name="text">0</property>
<property name="adjustment">adjustment1</property>
@@ -197,7 +196,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="tooltip_text" translatable="yes" context="sidebatableedit|columnwidth|tooltip_text">Column Width</property>
- <property name="halign">start</property>
<property name="hexpand">True</property>
<property name="text">0</property>
<property name="adjustment">adjustment2</property>