Bug 413572

Summary: v 19.08.2 Title Clip Text Alignment Buttons don't work right
Product: [Applications] kdenlive Reporter: dreichel <dale>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bartoloni, fritzibaby, julius.kuenzel, snd.noise
Priority: NOR Flags: fritzibaby: Brainstorm+
Version: 19.08.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
URL: musicminister.net
Latest Commit: Version Fixed In: 19.12
Sentry Crash Report:
Attachments: textbox_left alignment.PNG

Description dreichel 2019-10-28 22:53:50 UTC
SUMMARY: Title Clip Text Alignment Not Working


STEPS TO REPRODUCE
1. Add Title Clip
2. Add Text
3. Begin typing ... 

OBSERVED RESULT
1. By default first line is right aligned.
2. Seems to correct by clicking "right align button" ... 
3. For second line of title text, it reverts to right align. Fix by clicking left align. Third and following title lines work correctly after these first steps.


EXPECTED RESULT
I expect the title text to be left aligned by default. If not, at least I should be able to enter a new text field, click left align, and have all text remain left aligned until I selects some other alignment. It seems the text alignment buttons are wrong for the first two lines of text!
This worked "as expected" on previous version of KDENLIVE I had installed, which was about a year old. (Sorry, I don't recall number... but I think it was 18. something.)

SOFTWARE/OS VERSIONS
Windows: windows 10 Version 1903 (OS Build 18362.418)
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Jean-Baptiste Mardelle 2019-10-29 12:11:50 UTC
Git commit 0591cc0122c53736f9cfaafbf9e42244b0a216d5 by Jean-Baptiste Mardelle.
Committed on 29/10/2019 at 12:11.
Pushed by mardelle into branch 'master'.

Titler: align right by default on left to right languages.

M  +1    -1    src/titler/graphicsscenerectmove.cpp
M  +6    -2    src/titler/titlewidget.cpp

https://invent.kde.org/kde/kdenlive/commit/0591cc0122c53736f9cfaafbf9e42244b0a216d5
Comment 2 dreichel 2019-10-29 16:26:48 UTC
I was delighted to see this note get picked up! Thanks. I'm very new here ... just clicked a link that generated a "time stamp" ... I hope I did not just mess up something. Thanks again ... dreichel
Comment 3 emohr 2019-11-03 10:18:10 UTC
Please try with the upcoming Kdenlive version 19.12. 

We close this bug. If it still appears in the 19.12 version, please feel free to re-open it and update the affected version number.
Comment 4 dreichel 2020-02-10 04:34:43 UTC
Thank you for your work on this. I'm following up because the problem I reported still exists and is unchanged as of the current version, 19.12.2. though maybe I'm explaining it wrong.
 
When enter new title text, it starts defaulting to right aligned. 
I would think the "correct" behavior would be to default to left aligned.

As I type, the text seems to hit an arbitrary right edge, and then the "text box" begins expanding to the left, so the text's position (the left edge) changes, while the right edge remains in the same position. Everything expands to the left as I add more letters. The left edge moves and the right edge remains stationary, regardless of whether the properties are set to left align or right align. 
I would think when I enter title text, the top left corner --- where the first letter in left-justified text appears --- would remain in its starting position as I add more words and lines. 

I believe title text behaved that way up until this past fall.  

What I wish would happen is I open a new title screen, select tool to add new text, click where I want the upper left corner of the new text to appear, and be able to just type it in, adding additional lines by hitting "Enter" ... and the upper left corner stays right where it was with the first letter. Of course I still want to be able to reposition the text after entering it if necessary. As it is now, I start new text, type it in, then change it to left aligned, and then manually move it to the correct position on the screen because it will have migrated off the screen to the left while typing. That all seems odd to me. I hope I have described this so it makes sense. Please let me know if I could supply screen shots or something, if that would help. Again, THANK YOU!!!! I can work around this with only a little extra effort, but I wish somehow it could be restored to work like it used to ... I wish it worked like, say MS Notepad ... click starting point, start typing, everything by default aligns to the left.  But ... THANKS!!!! God bless ya. Dale R - Florida USA
Comment 5 emohr 2020-02-10 16:22:43 UTC
Created attachment 125825 [details]
textbox_left alignment.PNG

Confirmed. The problem ist that, as soon as you create a new thext box "align" jump to "right" by default. It should be "left" by default.
Comment 6 farid 2021-03-27 16:20:01 UTC
Related to BUG422315
Comment 7 Davy Bartoloni 2022-01-16 17:07:34 UTC
(In reply to farid from comment #6)
> Related to BUG422315

or maybe "centered" not all languages are using left to right....
here a forum post about it: https://forum.kde.org/viewtopic.php?f=265&t=173795

usually on video editing the centered alignment is very common.
Comment 8 Jean-Baptiste Mardelle 2022-03-20 21:59:41 UTC
Git commit 43f4e060a36df83c9dc8b59e6a80f821eee18210 by Jean-Baptiste Mardelle.
Committed on 20/03/2022 at 21:59.
Pushed by mardelle into branch 'release/22.04'.

Titler: remember and restore last used text alignment.

M  +4    -0    src/kdenlivesettings.kcfg
M  +3    -1    src/titler/graphicsscenerectmove.cpp
M  +1    -1    src/titler/graphicsscenerectmove.h
M  +18   -14   src/titler/titlewidget.cpp
M  +1    -0    src/titler/titlewidget.h

https://invent.kde.org/multimedia/kdenlive/commit/43f4e060a36df83c9dc8b59e6a80f821eee18210
Comment 9 Julius Künzel 2022-04-23 16:40:06 UTC
There was another fix for text alignment in the titler (see https://invent.kde.org/multimedia/kdenlive/-/merge_requests/291) and I can't see an issue anymore. Please test the latest nightly/master and close this report if it is fixed. Otherwise please explain what still behaves wrong…
Comment 10 Bug Janitor Service 2022-05-08 04:34:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2022-05-23 04:35:40 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!