Dear Klaus,
I just found this very strange issue with defining width of a layer with --> calc: command EXAMPLE HERE . Three layer containers, one is supposed to have a width assigned by the addition of the widths of the other two (red one at the link example). Same code works fine when they're not inside another container. Krpano 1.19-pr10.
It was some hours till I found this, please check this out.
Best
Luis
Code
<krpano>
<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />
<layer name="interface_container" type="container" keep="true" enabled="true" bgalpha="0.5" width="600" height="600">
<layer name="button1" type="container" width="calc:(layer[button2].width + layer[button3].width)" height="30" bgalpha="0.5" bgcolor="0xFF0000" bgborder="0,1,1,1 0xeeeeee 1" align="lefttop" y="130" x="20"/>
<layer name="button2" type="container" width="70" height="110" x="290" y="20" bgalpha="0.5" align="lefttop"/>
<layer name="button3" type="container" width="270" height="110" bgalpha="0.7" bgcolor="0xFFFFFF" x="20" y="20" bgborder="1 0xEEEEEE 1" align="lefttop" />
</layer>
<layer name="button4" type="container" width="calc:(layer[button5].width + layer[button6].width)" height="30" bgalpha="0.7" bgcolor="0xFF0000" bgborder="0,1,1,1 0xeeeeee 1" align="righttop" y="130" x="20"/>
<layer name="button5" type="container" width="70" height="110" x="290" y="20" bgalpha="0.5" align="righttop"/>
<layer name="button6" type="container" width="270" height="110" bgalpha="0.7" bgcolor="0xFFFFFF" x="20" y="20" bgborder="1 0xEEEEEE 1" align="righttop" />
</krpano>
Display More