Bug 108837 - Graphic object size will be changed incorrectly under vertical writing mode
Summary: Graphic object size will be changed incorrectly under vertical writing mode
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.0.beta1
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Vertical-Text
  Show dependency treegraph
 
Reported: 2017-06-28 13:58 UTC by Franklin Weng
Modified: 2023-08-12 14:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The original size of the object (104.46 KB, image/png)
2017-06-28 14:00 UTC, Franklin Weng
Details
Open the "Position and Size" menu (83.59 KB, image/png)
2017-06-28 14:01 UTC, Franklin Weng
Details
The height in the menu become a wrong value (95.44 KB, image/png)
2017-06-28 14:02 UTC, Franklin Weng
Details
After clicking OK the object will be resized (62.30 KB, image/png)
2017-06-28 14:03 UTC, Franklin Weng
Details
Text direction settings (63.21 KB, image/png)
2017-06-30 04:46 UTC, Franklin Weng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2017-06-28 13:58:30 UTC
Description:
It seems that the size limit of a graph object is wrong (inverted) under Portrait and Vertical writing mode.

For example, if we insert a rectangle with 12cm x 27cm under this mode and open the "Position and Size" context menu, it will limit the height to 17cm which is actually the width of the edit area in the document

Steps to Reproduce:
1. Set the text direction to Right-to-Left (vertical)
2. Insert a rectangle with height more than 21cm and arbitrary width (the example set to width 12.36cm and height 27.12cm) 
3. Right-click on the rectangle and choose "Position and Size"
4. You'll see the height become 17.09cm 
5. If we try to change the value with up and down button, you'll see the upper limit is 17.09cm.  Even if we set it to 27cm manually and press OK, it will shrink to 17.09cm too.

Actual Results:  
The upper limit of the height is wrong

Expected Results:
The size limit of the object should be still A4 Portrait.


Reproducible: Always

User Profile Reset: Yes

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.109 Safari/537.36
Comment 1 Franklin Weng 2017-06-28 14:00:37 UTC
Created attachment 134350 [details]
The original size of the object

Insert a rectangle with height more than 21cm.
Comment 2 Franklin Weng 2017-06-28 14:01:10 UTC
Created attachment 134351 [details]
Open the "Position and Size" menu
Comment 3 Franklin Weng 2017-06-28 14:02:13 UTC
Created attachment 134352 [details]
The height in the menu become a wrong value

This value seems to be the width of the edit area and will be limited to this one
Comment 4 Franklin Weng 2017-06-28 14:03:05 UTC
Created attachment 134353 [details]
After clicking OK the object will be resized

Manually change the value does not work.
Comment 5 Buovjaga 2017-06-29 18:53:39 UTC
(In reply to Franklin Weng from comment #0)
> 1. Set the text direction to Right-to-Left (vertical)

How? Please include detailed command path.
Comment 6 Franklin Weng 2017-06-30 04:46:09 UTC
(In reply to Buovjaga from comment #5)
> (In reply to Franklin Weng from comment #0)
> > 1. Set the text direction to Right-to-Left (vertical)
> 
> How? Please include detailed command path.

Format -> Page -> Text direction
Comment 7 Franklin Weng 2017-06-30 04:46:59 UTC
Created attachment 134403 [details]
Text direction settings

Format -> Page

In the "Text direction" set to Right-to-left(vertical)
Comment 8 Buovjaga 2017-06-30 12:23:48 UTC
Reproduced.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha0+
Build ID: 98befbb26217b0bf3f35354e418a355280c52cfc
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 29th 2017
Comment 9 QA Administrators 2018-07-01 02:42:16 UTC Comment hidden (obsolete)
Comment 10 Franklin Weng 2018-07-01 02:49:57 UTC
This bug is still present at

版本:6.0.5.2
組建 ID:1:6.0.5~rc2-0ubuntu0.16.04.1~lo1
CPU 執行緒:4; OS:Linux 4.4; UI 算繪:預設; VCL: kde4; 
語言地區:zh-TW (zh_TW.UTF-8); Calc: group


The behavior became:

1. Set the text direction to right-to-left (vertical)
2. Add a rectangle with height more than 21cm
3. Right-click the rectangle and choose "Position and Size"
4. You'll see the height become 14.84 cm, and can not set more than it.  When clicking OK, the rectangle will become 14.84 cm height.

i.e., even worse.
Comment 11 QA Administrators 2019-07-02 02:43:02 UTC Comment hidden (obsolete)
Comment 12 Franklin Weng 2019-08-11 10:54:35 UTC
Still reproducible in:

版本:6.4.0.0.alpha0+
組建 ID:91e4d876098aaa7ac18a03e20cbc2789fba98041
CPU 執行緒:4; OS:Linux 4.19; UI 算繪:預設; VCL: gtk3; 
語言地區:zh-TW (zh_TW.UTF-8); UI-Language: zh-TW
Calc: threaded
Comment 13 QA Administrators 2021-08-11 03:57:49 UTC Comment hidden (obsolete)
Comment 14 QA Administrators 2023-08-12 03:05:27 UTC Comment hidden (obsolete)
Comment 15 Franklin Weng 2023-08-12 14:50:47 UTC
Still reproducible in 7.6.0.1:
Version: 7.6.0.1 (X86_64) / LibreOffice Community
Build ID: 776eaf34564cbf3f034a0ba1fd1d5c32ff9ccf1c
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
Calc: threaded

The height limit becomes 18.33cm, not 17.09cm, but still limited to it.

The width limit is 29.7cm, which is the height of Portrait A4, i.e., the page height after setting to Vertical mode.