We are using Shape Scripts like the one below and I am trying to understand what the 2 numeric parameters after the compartment name do, how do they work and why do the produce the weird results they produce.
My understanding is that they specify the height and width as percents of each compartment. This would we fine if weren't for the fact that I have not manage to figure out a combination of values where the stereotype compartment is not too small (height wise) or the name compartment is not high.
shape main{
dockable="standard";
noShadow=true;
rectangle(0,0,100,100);
setfontcolor(0, 0, 0);
setfillcolor(255,255,255);
addSubshape("stereotypecompartment", 100, 30);
addSubshape("namecompartment", 100, 70);
shape stereotypecompartment
{
h_align = "right";
v_align = "top";
rectangle(0,0,100,100);
println("#stereotype#");
}
shape namecompartment
{
h_align = "center";
v_align = "center";
editablefield = "name";
rectangle(0,0,100,100);
printwrapped("#name#");
}
}