| Summary: | CTabRendering square tabs can disappear. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Mike Marchand <mmarchand> |
| Component: | UI | Assignee: | Mike Marchand <mmarchand> |
| Status: | VERIFIED FIXED | QA Contact: | Niraj Modi <niraj.modi> |
| Severity: | normal | ||
| Priority: | P3 | CC: | aobuchow, harald, Lars.Vogel, mat.booth, niraj.modi |
| Version: | 4.16 | ||
| Target Milestone: | 4.16 M3 | ||
| Hardware: | PC | ||
| OS: | Windows 10 | ||
| See Also: |
https://git.eclipse.org/r/163238 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7ab3a188e4ad01fd89986130757a760fa4f6a7cc |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 538740 | ||
|
Description
Mike Marchand
The solution here was was simpler than I was originally thinking it might be. The reason the tabs were disappearing is that the clipping rect was set to 0 width 0 height. In the case of the round tabs, we always set the clipping rect ourselves coming into the function and cleared it going out of the function. So in the square tabs, we now clear the clipping rectangle and everything works as expected again. The issue I mentioned earlier that is similar is bug 428697. It seems likely that bug is also caused by a clipping problem. Gerrit with the fix for square tabs disappearing incoming. New Gerrit change created: https://git.eclipse.org/r/163238 *** Bug 563423 has been marked as a duplicate of this bug. *** *** Bug 563423 has been marked as a duplicate of this bug. *** I don't see this on Linux, is the problem Windows only? I'm not sure where the clip rect is being set in the first place. In this case, I didn't root-cause the issue. My fix was to do the same thing for square as round since round tabs don't exhibit this problem (mostly... see bug 428697). Niraj? Would you be able to test the Gerrit? (In reply to Mat Booth from comment #5) > I don't see this on Linux, is the problem Windows only? Luckily I had a Windows 10 VM, where I do now see the problem. I'm testing the fix Gerrit change https://git.eclipse.org/r/163238 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7ab3a188e4ad01fd89986130757a760fa4f6a7cc (In reply to Mat Booth from comment #8) > (In reply to Mat Booth from comment #5) > > I don't see this on Linux, is the problem Windows only? > > Luckily I had a Windows 10 VM, where I do now see the problem. > > I'm testing the fix Looks good to me, I confirm this fixes it on Windows 10 and I checked Linux/GTK too and seems to be no adverse side-effects. Great work Mike! :) Verified in Build id: I20200521-1000 on Win10. I got the same problem in version 4.21 now, regardless of whether round or square tabs. |