Bug 579520 - [staging] Layout broken when warning message is toggled
Summary: [staging] Layout broken when warning message is toggled
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 6.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 6.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-31 03:21 EDT by Thomas Wolf CLA
Modified: 2022-03-31 06:04 EDT (History)
0 users

See Also:


Attachments
Broken layout (14.65 KB, image/png)
2022-03-31 03:21 EDT, Thomas Wolf CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wolf CLA 2022-03-31 03:21:32 EDT
Created attachment 288348 [details]
Broken layout

Since the commit message preview was introduced, the layout of the commit message section gets broken when the warning label is toggled.

To reproduce:

* Have the warning for non-empty second line enabled
* Open the Git Staging view
* Enter commit message text "foo", newline, "bar"
Comment 1 Thomas Wolf CLA 2022-03-31 03:23:32 EDT
Then click on the preview icon; then switch back to edit view: layout is OK now.

Then clear the second line (delete "bar"). The warning label is hidden, but the text area is not re-sized.
Comment 2 Eclipse Genie CLA 2022-03-31 03:26:01 EDT
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/192390