Bug 563575 - Navigator toolbar issues
Summary: Navigator toolbar issues
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.16   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.16 RC1   Edit
Assignee: Mike Marchand CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-05-26 03:48 EDT by Amit Mendapara CLA
Modified: 2020-05-28 04:11 EDT (History)
4 users (show)

See Also:


Attachments
navigator-toolbar.png (107.10 KB, image/png)
2020-05-26 03:48 EDT, Amit Mendapara CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Mendapara CLA 2020-05-26 03:48:38 EDT
Created attachment 283012 [details]
navigator-toolbar.png

The navigator toolbars have few minor layout issues.

Please see the attached screenshot.

The toolbar is overlapping the tab and there is a background color issue because of unnecessary spacing between toolbar items.
Comment 1 Lars Vogel CLA 2020-05-26 03:54:15 EDT
Thanks, Gerrits are welcome.
Comment 2 Amit Mendapara CLA 2020-05-26 07:55:22 EDT
(In reply to Lars Vogel from comment #1)
> Thanks, Gerrits are welcome.

Thanks Lars :)

The overlapping issue is not there in 4.15 so it may be because of some 4.16 changes.

I can check if you point me to the correct source and components.
Comment 3 Amit Mendapara CLA 2020-05-26 08:07:06 EDT
I just checked further and found that it's "CTabRendering" where I should check and it is #538740 related changes that caused this issue.
Comment 4 Lars Vogel CLA 2020-05-26 08:12:22 EDT
Mike, can you check?
Comment 5 Andrew Obuchowicz CLA 2020-05-26 08:22:16 EDT
@Amit, there's now a preference to switch between using Square/Round tabs in the appearance options. It might be worth investigating if this issue occurs only with square or round tabs, as that'd help Mike (or someone else) find the source of the bug.
Comment 6 Amit Mendapara CLA 2020-05-26 08:38:17 EDT
(In reply to Andrew Obuchowicz from comment #5)
> @Amit, there's now a preference to switch between using Square/Round tabs in
> the appearance options. It might be worth investigating if this issue occurs
> only with square or round tabs, as that'd help Mike (or someone else) find
> the source of the bug.

Yes I checked, same issue is the with rounded tab.

I tried by reverting "CTabRendering" to commit 40500009cce062f9a81533e94f1e310fdc9f76de and the issue was not there.

After that I reverted the "CTabRendering" to the commit 9c74e2cf1d925d37fb7f8a4c1bd387e27cab4448 (the one that implemented square tabs) and I can see the issue.
Comment 7 Mike Marchand CLA 2020-05-26 09:47:27 EDT
I'm going to take a look at this today.
Comment 8 Mike Marchand CLA 2020-05-26 10:12:53 EDT
This issue also reproduces on Windows.
Comment 9 Mike Marchand CLA 2020-05-27 10:59:52 EDT
I have a fix for this issue.  This regression was caused by the change to computeTrim so that the corner radius doesn't affect the trim.  In the PART_BORDER case, we no longer have enough padding without the corner radius' contribution.  By considering ITEM_LEFT_MARGIN and ITEM_RIGHT_MARGIN, we get better results, with no overlap of buttons and tabs.  Gerrit incoming.
Comment 10 Eclipse Genie CLA 2020-05-27 11:02:52 EDT
New Gerrit change created: https://git.eclipse.org/r/163687
Comment 11 Lars Vogel CLA 2020-05-27 11:05:37 EDT
(In reply to Mike Marchand from comment #8)
> This issue also reproduces on Windows.

How can I reproduce this on Windows?
Comment 12 Lars Vogel CLA 2020-05-27 11:10:42 EDT
(In reply to Lars Vogel from comment #11)
> How can I reproduce this on Windows?

To reproduce: close all views after it and move it over the corner.
Comment 13 Mike Marchand CLA 2020-05-27 11:15:14 EDT
Ah, reproducing for me is as simple as resizing the view, so that the toolbar approaches the tabs, at a certain point the toolbar should move to the second row but it happens a couple pixels too late, causing some overlap of the toolbar and the tab.
Comment 15 Lars Vogel CLA 2020-05-27 15:51:49 EDT
Thanks Mike for the fix and Andrew for testing and review.

Thanks Amit for reporting.
Comment 16 Amit Mendapara CLA 2020-05-28 03:28:42 EDT
(In reply to Lars Vogel from comment #15)
> Thanks Mike for the fix and Andrew for testing and review.
> 
> Thanks Amit for reporting.

I couldn't check it yesterday. Does the I-Build(In reply to Lars Vogel from comment #15)
> Thanks Mike for the fix and Andrew for testing and review.
> 
> Thanks Amit for reporting.

I couldn't test the patch yesterday but just checked the latest I-Build and issue is fixed now.
Comment 17 Lars Vogel CLA 2020-05-28 03:33:12 EDT
Thanks Amit for checking. Your other issues is handled by Bug 539661. Please test, if you have time.
Comment 18 Amit Mendapara CLA 2020-05-28 03:43:24 EDT
(In reply to Lars Vogel from comment #17)
> Thanks Amit for checking. Your other issues is handled by Bug 539661. Please
> test, if you have time.

I doubt. The Bug 539661 is about dark theme while I can see the issue with light theme.

I found that setting RawLayout spacing to 0 (zero) in StackRenderer.java before line 711 fixes the issue.
Comment 19 Lars Vogel CLA 2020-05-28 03:47:15 EDT
(In reply to Amit Mendapara from comment #18)

> I doubt. The Bug 539661 is about dark theme while I can see the issue with
> light theme.

For light theme, please comment on Bug 483493.
Comment 20 Amit Mendapara CLA 2020-05-28 04:01:12 EDT
(In reply to Lars Vogel from comment #19)
> (In reply to Amit Mendapara from comment #18)
> 
> > I doubt. The Bug 539661 is about dark theme while I can see the issue with
> > light theme.
> 
> For light theme, please comment on Bug 483493.

It's Bug 539661. I just tested those last gerrit changes and it fixed the issue. I will comment on both those tickets.
Comment 21 Amit Mendapara CLA 2020-05-28 04:11:31 EDT
(In reply to Amit Mendapara from comment #20)
> (In reply to Lars Vogel from comment #19)
> > (In reply to Amit Mendapara from comment #18)
> > 
> > > I doubt. The Bug 539661 is about dark theme while I can see the issue with
> > > light theme.
> > 
> > For light theme, please comment on Bug 483493.
> 
> It's Bug 539661. I just tested those last gerrit changes and it fixed the
> issue. I will comment on both those tickets.

Sorry, it's not. The issue is still there.