Community
Participate
Working Groups
When a MPartStack is resized using setContainerData, the parent MPartSashContainer does not redraw because forceLayout is not being invoked. How to reproduce: ApplicationModel: -PartSashContainer --PartStack --PartStack Load PartSashContainer and child PartStacks via modelService and set a different containerData to PartStacks: Expected behavior: PartStashContainer is adjusted Actual result: Nothing happens The problem is that SashRenderer.subscribeTopicSashWeightChanged() returns when element.getRenderer() != SashRenderer.this Workaround: call MPartSashContainer.setContainerData(newValue) to trigger change
Thanks Julian, are you available to upload a Gerrit? IMHO fix would look similar to: if !(element.getParent!=null && element.getParent!= SashRenderer.this ) || element.getRenderer() == SashRenderer.this { return; } We basically need to check the parent also and see if it is a SashRenderer.
Created attachment 270993 [details] SashRenderer.java Hi, i tried to fix the SashRenderer. Unfortunately I have problems pushing to Gerrit and no time to fix it. So, for review I will attach my changes here :/ I'm not pretty sure with the changes, looks quite complicated what was needed to be done so please take a look at it. - added 3 private methods on the buttom and adapted forceLayout and subscribeTopicSashWeightChanged Hope this helps. regards Julian
This bug did not get delivered for the specified target milestone. Please set the target milestone when you plan to deliver the fix.
Sorry Julian for missing your patch. I regulary check Gerrit but didn't see that you had issue uploading a patch to Gerrit. Meanwhile we have fixed that via Bug 553811 *** This bug has been marked as a duplicate of bug 553811 ***