This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 426013 - [Perspectives] Part is not resized/layouted if previously shown in another perspective (regression in 4.3.1)
Summary: [Perspectives] Part is not resized/layouted if previously shown in another pe...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.4 M6   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Eric Moffatt CLA
URL:
Whiteboard:
Keywords:
: 419086 427597 (view as bug list)
Depends on:
Blocks: 427497
  Show dependency tree
 
Reported: 2014-01-17 13:04 EST by Markus Keller CLA
Modified: 2014-02-07 04:19 EST (History)
3 users (show)

See Also:


Attachments
Screenshot (7.77 KB, image/png)
2014-01-17 13:04 EST, Markus Keller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2014-01-17 13:04:52 EST
Created attachment 239111 [details]
Screenshot

I20140115-1300, did not happen in 4.3.1

A part is not resized/layouted any more if it was previously shown in another perspective with a different size.

- new workspace, close Welcome
- switch to "Javadoc" view, thereby hiding the "Problems" view
- switch to "Plug-in Development" perspective
- reduce the height of the "Problems" view, so that only two rows stay visible
- switch back to the "Java" perspective
- click the "Problems" view tab
Comment 1 Dani Megert CLA 2014-01-22 08:29:01 EST
Broken since 4.4 M1.
Comment 2 Eric Moffatt CLA 2014-02-04 16:07:30 EST
This is easy to reproduce, now I wonder why there's not a bunch of DUPS...

This is the result of our playing around with the widget hierarchy using 'setParent' in order to support shared elements. It turns out that the CTF does correctly set the size of the Composite the CTabItem owns but (since it didn't actually change size) it doesn't lay out its children.

Committed:

http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=0ef4595a3bf7d2b349b87b886e382cadf10cddad

This specifically causes the CTabItem to lay out its children. Note that it's only the *item* that is getting a layout so we're not re-introducing the performance issue...
Comment 3 Eric Moffatt CLA 2014-02-05 14:14:21 EST
*** Bug 419086 has been marked as a duplicate of this bug. ***
Comment 4 Paul Webster CLA 2014-02-06 23:13:15 EST
*** Bug 427597 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2014-02-07 04:15:09 EST
Verified in M20140206-1000.
Comment 6 Dani Megert CLA 2014-02-07 04:19:51 EST
(In reply to Dani Megert from comment #5)
> Verified in M20140206-1000.

and in N20140205-2000.