For anyone else who is having issues with the 'Field name' column being
way too narrow in the 'Standard Filter' dialog, here is what I did to
fix the issue (on Ubuntu 20.04, LibreOffice 6.4.7.2) by allowing the
column to be widened by resizing the dialog:

First backup the file just in case:
sudo cp 
/usr/lib/libreoffice/share/config/soffice.cfg/modules/scalc/ui/standardfilterdialog.ui
 
/usr/lib/libreoffice/share/config/soffice.cfg/modules/scalc/ui/standardfilterdialog.ui.bak

Now change the resizable property for the dialog to True.

So from this:
  <object class="GtkDialog" id="StandardFilterDialog">
    <property name="can_focus">False</property>
    <property name="border_width">6</property>
    <property name="title" translatable="yes" 
context="standardfilterdialog|StandardFilterDialog">Standard Filter</property>
    <property name="resizable">False</property>

To this:
  <object class="GtkDialog" id="StandardFilterDialog">
    <property name="can_focus">False</property>
    <property name="border_width">6</property>
    <property name="title" translatable="yes" 
context="standardfilterdialog|StandardFilterDialog">Standard Filter</property>
    <property name="resizable">True</property>


Then find the 4 GtkComboBoxText objects with ids from field1 to field4, and add 
the "hexexpand" property.

So from this:
<object class="GtkComboBoxText" id="field1">
  <property name="visible">True</property>
  <property name="can_focus">False</property>
  <accessibility>

To this:
<object class="GtkComboBoxText" id="field1">
  <property name="visible">True</property>
  <property name="can_focus">False</property>
  <property name="hexpand">True</property>
  <accessibility>


Optionally, if you don't want the 'Value' column to also expand when resized, 
then find the 4 GtkComboBoxText objects with ids from val1 to val4, and remove 
or set the "hexexpand" property to False.


So from this:
<object class="GtkComboBoxText" id="val1">
  <property name="visible">True</property>
  <property name="can_focus">False</property>
  <property name="hexpand">True</property>

To this:
<object class="GtkComboBoxText" id="val1">
  <property name="visible">True</property>
  <property name="can_focus">False</property>
  <property name="hexpand">False</property>


In my opinion this should be the default behavior.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1710910

Title:
  Standard filter dialog window is not re sizable and don't adapt to the
  content width

To manage notifications about this bug go to:
https://bugs.launchpad.net/calc/+bug/1710910/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to