Custom Shape <default-height> is not honored



I have two custom shapes with a rectangle with a textbox.
In the 1st shape, the textbox is sized to match the svg:rect.
In the 2ns shape, the textbox is below the svg:rec.

The 1st shape renders correctly by default - 3x1.
The 2nd shape does not - it renders 3x2.5.

I've tried various combinations default-width, default-height, viewbox, changing the dimensions, etc.
All without success.

Any help would be appreciated.
go2null

<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg">
 <name>Rectangle - Text Inside</name>
 <icon>go2null_Rectangle_TextInside.png</icon>

 <aspectratio type="free"/>
 <default-width>3cm</default-width>
 <default-height>1cm</default-height>

 <svg:svg width="3cm" height="1cm" viewBox="0 0 3 1">
ÂÂÂ <svg:rect style="fill:#cccccc; stroke:foreground; stroke-width:.1" x="0" y="0" width="30" height="10"/>
 </svg:svg>
 <textbox x1="0" y1="0" x2="30" y2="10" align="center" resize="yes"/>

 <connections>
ÂÂÂ <point x="0" y="0"/>
ÂÂÂ <point x="0" y="5"/>
ÂÂÂ <point x="0" y="10"/>
ÂÂÂ <point x="5" y="0"/>
ÂÂÂ <point x="5" y="10"/>
ÂÂÂ <point x="10" y="0"/>
ÂÂÂ <point x="10" y="10"/>
ÂÂÂ <point x="15" y="0"/>
ÂÂÂ <point x="15" y="10" main="yes"/>
ÂÂÂ <point x="20" y="0" />
ÂÂÂ <point x="20" y="10"/>
ÂÂÂ <point x="25" y="0"/>
ÂÂÂ <point x="25" y="10"/>
ÂÂÂ <point x="30" y="0"/>
ÂÂÂ <point x="30" y="5"/>
ÂÂÂ <point x="30" y="10"/>
 </connections>
</shape>


<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg">
 <name>Rectangle - Text Below</name>
 <icon>go2null_Rectangle_TextBelow.png</icon>

 <aspectratio type="free"/>
 <default-width>3cm</default-width>
 <default-height>1.4cm</default-height>

 <svg:svg width="3cm" height="1cm" viewBox="0 0 3 1">
ÂÂÂ <svg:rect style="fill:#cccccc; stroke:foreground; stroke-width:.1" x="0" y="0" width="30" height="10"/>
 </svg:svg>
 <textbox x1="0" y1="10" x2="30" y2="14" align="center" resize="yes"/>

 <connections>
ÂÂÂ <point x="0" y="0"/>
ÂÂÂ <point x="0" y="5"/>
ÂÂÂ <point x="0" y="10"/>
ÂÂÂ <point x="5" y="0"/>
ÂÂÂ <point x="5" y="10"/>
ÂÂÂ <point x="10" y="0"/>
ÂÂÂ <point x="10" y="10"/>
ÂÂÂ <point x="15" y="0"/>
ÂÂÂ <point x="15" y="10" main="yes"/>
ÂÂÂ <point x="20" y="0" />
ÂÂÂ <point x="20" y="10"/>
ÂÂÂ <point x="25" y="0"/>
ÂÂÂ <point x="25" y="10"/>
ÂÂÂ <point x="30" y="0"/>
ÂÂÂ <point x="30" y="5"/>
ÂÂÂ <point x="30" y="10"/>
 </connections>

</shape>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]