c# - Visio 2010/2013 page re-layout doesn't work if the page has a container shape with at least one child shape -
i'm recursively traversing directed object graph build flow chart using visio 2010 automation (sdk). i drop shapes on page , create connectors, when layout flowchart visio misplaces bottom of diagram container shapes have @ least 1 child shape. this problem visio auto page layout exists if page laid out ui (i.e. "design" tab -> "layout" group -> "re-layout page" -> "hierarchy"). to reproduce error, in visio 2010/2013: create blank drawing add 2 basic shapes, "basic shapes" style sheet example, let's call them b1 , b2 reference. place b1 inch above b2. select b1. add b1 container shape, let's call c1. add b1 c1 select left container "insert" tab -> "diagrams parts" group -> "container" in toolbar. draw connector c1 b2. connector can added "home" tab -> "tools" group -> "connector" option in toolbar. right click connector ,...