Community
Participate
Working Groups
We should evaluate if layout() calls in forms can be replaced by requestLayout() calls.
Ralf, something for you?
Yes i will investigate this and provide a patch. Is it possible to change the "Assigned To" field on the bugs i am working? This will it make more easier to track the bugs i am working on.
(In reply to Ralf Petter from comment #2) > Is it possible to change the "Assigned To" field on the bugs i am working? I requested bug triage rights for you from webmaster.
New Gerrit change created: https://git.eclipse.org/r/95105
I suspect this will fix bug 276660.
This is an important behavior change. We need PMC advice before decidign how versions should evolve with such change.
Composite#layout(boolean) already mentions that clients better call Control#requestLayout(). Changing the behavior/implementation of #layout itself is a no go.
Calls to super.layout() from within the implementation of layout() (or presumably from layoutIfNecessary) should stay as-is since they're part of the implementation of layout(). Switching them to requestLayout() would cause problems (and possibly an infinite layout loop). Calls to layout() from within non-layout-related methods (like setText()) should be changed to requestLayout(). I assume the former issue is why Dani rejected the patch...?
(In reply to Stefan Xenos from comment #8) > Calls to super.layout() from within the implementation of layout() (or > presumably from layoutIfNecessary) should stay as-is since they're part of > the implementation of layout(). Switching them to requestLayout() would > cause problems (and possibly an infinite layout loop). > Calls to layout() from within non-layout-related methods (like setText()) > should be changed to requestLayout(). > I assume the former issue is why Dani rejected the patch...? Yes, see last comment on Gerrit.
Adding Karsten, as he is also interested in performance work.
Please set a target milestone again when you really plan to work on it.
Let's target it for 4.8.M7 as we're very close to a good patch to merge.
Gerrit change https://git.eclipse.org/r/95105 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d15481a0a5f60e568401474cf741c79472e05e99
This caused a regressions, see bug 533089. Reverted the change with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=6bf8aa42b55821e82e17a5aeda9294dc6d3d208e Such changes are always risky.