Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337608

Summary: Extended bounds of BorderedNodeFigure not always refreshed when needed
Product: [Modeling] GMF-Runtime Reporter: Lidija Grahek <lgrahek>
Component: GeneralAssignee: Lidija Grahek <lgrahek>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: aboyko, yann.tanguy
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Lidija Grahek CLA 2011-02-18 15:25:36 EST
getExtendedBounds() in BorderedNodeFigure will recalculate extendedBounds only if it is null, and it is being set to null by invalidate(), validate() and fireFigureMoved(), which seems right. The only problem is that in fireFigureMoved() extendedBounds is being set to nul after calling super.fireFigureMove(), so all container size calculations are going to use the old extended bounds of this figure, which is wrong. extendedBounds needs to be re-set before calling super.fireFigureMoved().
Comment 1 Lidija Grahek CLA 2011-02-18 15:27:04 EST
Created attachment 189317 [details]
Patch

The patch is attached. Alex, could you take a look? Thanks.