svx/source/form/recorditemwindow.cxx |    6 +++++-
 svx/uiconfig/ui/absrecbox.ui         |    2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 6afd1e3c06e476a01c25032d3d95ed7e624b58e0
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Jul 23 11:26:16 2020 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Jul 23 20:44:41 2020 +0200

    let record field shrink in width
    
    and expand to fill available space
    
    Change-Id: Idc12efb37ce1b3a6a51bb3469e2d886a52cc5047
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99310
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svx/source/form/recorditemwindow.cxx 
b/svx/source/form/recorditemwindow.cxx
index 26920ee2a42f..efb07343ecfc 100644
--- a/svx/source/form/recorditemwindow.cxx
+++ b/svx/source/form/recorditemwindow.cxx
@@ -30,7 +30,11 @@ RecordItemWindow::RecordItemWindow(vcl::Window* pParent)
     m_xWidget->connect_activate(LINK(this, RecordItemWindow, ActivatedHdl));
     m_xWidget->connect_focus_out(LINK(this, RecordItemWindow, FocusOutHdl));
 
-    SetSizePixel(m_xWidget->get_preferred_size());
+    auto aPrefSize(m_xWidget->get_preferred_size());
+
+    m_xWidget->set_width_chars(1); // so a smaller than default width can be 
used later
+
+    SetSizePixel(aPrefSize);
 }
 
 void RecordItemWindow::dispose()
diff --git a/svx/uiconfig/ui/absrecbox.ui b/svx/uiconfig/ui/absrecbox.ui
index 5b06bc879578..a91603f505f6 100644
--- a/svx/uiconfig/ui/absrecbox.ui
+++ b/svx/uiconfig/ui/absrecbox.ui
@@ -6,12 +6,14 @@
     <property name="visible">True</property>
     <property name="can_focus">False</property>
     <property name="hexpand">True</property>
+    <property name="vexpand">True</property>
     <property name="spacing">4</property>
     <child>
       <object class="GtkEntry" id="entry">
         <property name="visible">True</property>
         <property name="can_focus">True</property>
         <property name="hexpand">True</property>
+        <property name="vexpand">True</property>
         <property name="width_chars">4</property>
         <property name="shadow_type">none</property>
       </object>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to