Issue 105105 - Texts show strange vertical alignment in a Vertical Text frame.
Summary: Texts show strange vertical alignment in a Vertical Text frame.
Status: CONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: formatting (show other issues)
Version: DEV300m58
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 84405
  Show dependency tree
 
Reported: 2009-09-16 04:24 UTC by amy2008
Modified: 2013-02-07 22:35 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
text is top aligned (77.34 KB, image/png)
2009-09-18 04:06 UTC, redflagzhulihua
no flags Details
After we set the text to default, we can see the text is vertically (relative to character itself) middle aligned (77.62 KB, image/png)
2009-09-18 04:09 UTC, redflagzhulihua
no flags Details
Clicking outside of the frame, We can see the texts turn into Bottom aligned (72.25 KB, image/png)
2009-09-18 04:11 UTC, redflagzhulihua
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description amy2008 2009-09-16 04:24:14 UTC
Can reproduce it in DEV300m58 and OOo3.1.1RC2
Comment 1 amy2008 2009-09-16 04:35:56 UTC
How to reproduce it
1 Create a new Impress file
2 Apply "Vertical Title, Vertical Text" layouts for slide 1
3 Input a title for slide 1, like "This is a title"
4 Select Title text, right_click on it and choose Default on the context menu,
  Pay attention to the text alignment
5 Set align to right for the title text, pay attention to the text;
  click any other area, then pay attention to the title text alignment.

Result
After step 4, text seems to be on the left of the title box;
Step 5, Set align to right for the title text, find text can be set correctly;
but when text lose focus, text align becomes the original alignment, but it 
shows correctly on the toolbar.

Expectation
Alignment for text works well.

Regards
Li Meiying
Comment 2 wolframgarten 2009-09-16 08:13:27 UTC
Sorry, not reproducible. After point 4 the text is centered and the textbox is
resized to fit the text inside. Is this again a problem of a ZH based OS maybe?
Comment 3 Regina Henschel 2009-09-16 10:32:03 UTC
Hi amy2008, perhaps there is some confusing between paragraph alignment and the
alignment of the text block in the frame. For testing, please use a title with
two lines, one long and one short and set the border of the title element to
visible. When you set the paragraph alignment to right, you should see that the
short line is on the logical "right", which is visually at "buttom".
The whole text block is still centered, because this is not determined by the
paragraph alignment, but is set in the 'text' property. For presentation
objects, this property can only be set via the style. In the style in the tab
'Text' you find the check box 'Full width'. If it is checked, then the text
block is centered automatically. If you want to align the text block to the
"right", you must first uncheck 'Full width' and then you can choose the
alignment in the options above that check box. The settings are not logical but
visual. For to align the text block to "right", you must use an option at the
buttom.
Comment 4 redflagzhulihua 2009-09-17 09:21:26 UTC
@wg: 
Because the direction of the text is rotated, so it gets a little confused. I
modify the steps as below (modified descriptions are quoted by asterisks):
1 Create a new Impress file
2 Apply "Vertical Title, Vertical Text" layouts for slide 1
3 Input a title for slide 1, like "This is a title". 
  *You can see the texts are Top aligned*
4 Select Title text, right_click on it and choose Default on the context menu,
  Pay attention to the text alignment, *You can see the texts turn into Middle
aligned*
5 click any other area, then pay attention to the title text alignment.
  *The texts turn into Bottom aligned*
6 *Select the texts and click the alignment button in the toolbar (any of
left/right/center)
   You can see texts turn into Middle alignment again.*
7 *Click outside of the frame, the texts back into Bottom aligned*

Seems the alignment buttons in the toolbar have effect on the vertical alignment
of the 
text when the text in selected mode.
The vertical alignment of the texts are not fixed. At the beginning, it's Top
aligned. But 
it turns into Bottom align when the frame lose focus.

HTH
Comment 5 redflagzhulihua 2009-09-17 09:37:34 UTC
@regina:

Hi, amy2008 will be absent for couple of months. My colleagues and I will take
her place these days. :-)

I guess maybe you get what amy2008 meant about this issue. But I can't find the
"full width" checkbox you mentioned. So I'm not sure if you really get her.
Could you please tell me how to find the checkbox? 
Thanks.
Comment 6 Regina Henschel 2009-09-17 12:33:07 UTC
@redflagzhulihua:
Hi,
open the "style and formatting"-window (with F11).
Choose group "Presentation Style".
Right click on 'title', then on 'Modify'.
Click on tab 'Text'.
Look at the right, bottom.

If your title-object has got a hard formatting, it might be necessary to remove
it before you can see, what the style does. click on the title-object, not the
text. You should see green handles. Then use menu 'Format' item 'Default
formatting'.

You should really use a title with two lines to see what happens. 
Comment 7 redflagzhulihua 2009-09-17 14:38:57 UTC
@regina:
Hi, thank you for the hint, I still can't find that checkbox on my computer. I'm
using OOo3.1, so maybe that checkbox is a new feature after OOo3.1, I'll check
it with the new build tomorrow when I'm back to work.

But this issue is not reproduced in new builds only. It's reproduced in my
OOo3.1. Did you read the description I provide? The directions I mentioned there
are all relative to the character itself, not to the screen.

How do you think about the other issue 105106?

@wg:
Hi, The directions I mentioned in my description are all relative to the
character itself, not to the screen. I believe this can get rid of the confusion.
Comment 8 Regina Henschel 2009-09-17 15:08:57 UTC
This issue has set version DEV300m58 and in that version the settings are where
I described it. In older versions this settings are not available for the
title-object and so the text in the title object is always centered. Please use
newest version and test whether you still see your problem.

For graphic objects as you mentioned in issue 105106 you can reach the
'Text'-tab via style or do a hard formatting via menu Format > Text or context
menu > Text. There are even in older versions no problems with alignment text in
graphic objects. 
Comment 9 redflagzhulihua 2009-09-18 03:55:54 UTC
Hi regina,

Thank you for the description. I understand what you said now. But the issue has
nothing to do with the "full width" checkbox.

I'll upload some pictures to show you.
Comment 10 redflagzhulihua 2009-09-18 04:04:27 UTC
In fact, This issue have nothing to do with the title at all. It's a issue about
Vertical Text. Because the layout amy2008 mentioned is basically a special kind
of Vertical Text.

After we create a Vertical Text and input some text in it, change the size of
the frame. We can see the text is Top aligned.

Comment 11 redflagzhulihua 2009-09-18 04:06:16 UTC
Created attachment 64829 [details]
text is top aligned
Comment 12 redflagzhulihua 2009-09-18 04:09:03 UTC
Created attachment 64830 [details]
After we set the text to default, we can see the text is vertically (relative to character itself) middle aligned
Comment 13 redflagzhulihua 2009-09-18 04:11:48 UTC
Created attachment 64831 [details]
Clicking outside of the frame, We can see the texts turn into Bottom aligned
Comment 14 redflagzhulihua 2009-09-18 04:23:45 UTC
Now select the text. Clicking any button in format toolbar(left align, right
align or bolt, italic etc.), you can see the text jump to middle alignment
again. Clicking outside of the frame can restore texts to bottom alignment again.

And I found another issue in the first picture. After we create a Vertical text
frame, the Vertical Text button in the drawing toolbar is pressed down. But when
the frame lose focus and get focus again, The Horizon Text button is pressed
down, instead of Vertical button.

Though these strange behaviors, I believe there are bugs around here.