Bug 237933 - BorderItemRectilinearRouter does not work for nested border items
Summary: BorderItemRectilinearRouter does not work for nested border items
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal
Target Milestone: ---   Edit
Assignee: Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-20 10:20 EDT by Hauke Fuhrmann CLA
Modified: 2010-07-19 21:58 EDT (History)
0 users

See Also:


Attachments
Extension of the BorderItemRectilinearRouter to show the methods to fix (2.06 KB, text/plain)
2008-06-20 10:22 EDT, Hauke Fuhrmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hauke Fuhrmann CLA 2008-06-20 10:20:46 EDT
Build ID: I20080530-1730

Steps To Reproduce:
I have a Node figure (A) with a border item (B). The border item itself has an object C (e.g. a label), which itself is a border item to B:

----------------
|              |
|              |-----
|    A         | B  |
|              |-----
|              |Label C
|              |
----------------

Connections are between the first border items (B). 

More information:
The BorderItemRectilinearRouter depends on some places that the parent of B is A, resp. the BorderItemContainerFigure of A.

In this example this is not the case: The parent of Figure B is its BorderedNodeFigure, because it itself has a border item and therefore a wrapper around B for B and C.

Problems are in the methods getBorderFigurePosition and getObstacle.

I fixed this by asking for this special case and setting parent accordingly. See attachment.

Without the fix the main purpose of the router to avoid parent overlapping is not functioning.
Comment 1 Hauke Fuhrmann CLA 2008-06-20 10:22:25 EDT
Created attachment 105498 [details]
Extension of the BorderItemRectilinearRouter to show the methods to fix
Comment 2 Eclipse Webmaster CLA 2010-07-19 21:58:08 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug