Having a table's alignment properties set to center does not cause the table to have its position recentered on the page each time the table is resized.
Steps to Reproduce:
User Profile Reset: No
By using LibreOffice:
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial4
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default;
Locale: en-US (en_US.UTF-8); Calc: group
My Operating system information:
Linux ubuntu 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I met the same difficulties.
The steps i followed:
1. insert table
2. Right click on the table and select Table Properties
3. From the left side: On Alignment, Select Center Option
4. Click Ok.
To Resize the table:
1. By using your mouse go to the ruler, click and hold your mouse then drag from left to right, or
from right to left
Created attachment 145084 [details]
Screenshot for table centered
After centering the inserted table this is the way the table looks like before resizing.
Created attachment 145085 [details]
After centering the table, I resized by clicking and hold on the ruler and drag from right to left and from left to right.
This is the result i found.
Build ID: 76bf3939b0583212a56c317c85aea110f8ac6fee
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default;
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-07-27_06:01:47
Locale: nl-NL (nl_NL.UTF-8); Calc: group threaded
Build ID: 8a35821d8636a03b8bf4e15b48f59794652c68ba
Might be by design.. Adding needUXEval
To recap, you have a small table like |-|-|------ (- for white space) and want to center it to get the same white space at left and right (otherwise Center makes no sense) ---|-|-|---. That happens on (Table) > Properties > Center but the table is then not automatically recentered when columns are resized - what you suggest to change. Right?
The radio button is, however, just a command to center the full table once. And it is reset to "From left" after modifications. Besides the wrong implementation of Center it works for me.
But lately Justin submitted some patches for tables in Draw/Impress and perhaps he has a different opinion.
(In reply to Heiko Tietze from comment #5)
> To recap, you have a small table like |-|-|------ (- for white space)
Whitespace has nothing to do with his bug report - just the fact that resizing the table resets the alignment.
> The radio button is, however, just a command to center the full table once.
No, it is more than just a one-time command to center the table. Going back to the properties (without resizing the table) shows that it is still centered, and changing the page size/orientation for example properly moves the table to the center of the new page layout.
The request to re-center the table makes theoretical sense to me - but from a UI perspective it would cause problems as the table would "jump" as soon as the user lets go of the button. (Word can do this, it re-centers the table interactively while you are enlarging it - tricky.)
Legitimate, but very unlikely to happen.
(In reply to Justin L from comment #6)
> > The radio button is, however, just a command to center the full table once.
> No, it is more than just a one-time command to center the table.
Today it works like a command and we could keep that/make it more clear by e.g. moving "Center" into a button. Of course there is also the option to keep a table centered. Sounds weird to me - you enlarge a column and suddenly the table is replaced. As you say: jumps.
> Legitimate, but very unlikely to happen.
Vote for WF.
"center" is one of the values of attribute table:align of <style:table-properties> element in ODF. Why should it not be supported? If users select this value, I assume they know the effect. It is not different from having a frame centered and resizing the frame by e.g. dragging the right edge.
We discussed the issue in the design meeting and agree with Justin and Regina that after any resize operation the table has to get recentered automatically if the option is set.
Looks pretty much like an easyhack.