Hi all.
I have a strange behavior for the combobox component when there is a
problem with the position of one of the ancestors, if it is depending on
a faulty constraint.
The following does not work:
<canvas>
<view y="${mapa.y+mapa.height+20}" width="${canvas.width}"
valign="top" bgcolor="#EEEEEE" >
<combobox id="tipo_de_habitacion_cb"
name="tipo_de_habitacion" editable="false" shownitems="5">
<textlistitem text="compartida"
value="compartida" selected="true"/>
<textlistitem text="single" value="single"/>
<textlistitem text="triple" value="triple"/>
<textlistitem text="quintuple" value="quintuple"/>
</combobox>
</view>
</canvas>
There is a broken consraint referencing the position of "mapa", which
does not exist.
It compiles and the combobox is visible, but it behaves as if it were
disabled.
The following does works:
<canvas>
<view id="mapa" />
<view y="${mapa.y+mapa.height+20}" width="${canvas.width}"
valign="top" bgcolor="#EEEEEE" >
<combobox id="tipo_de_habitacion_cb"
name="tipo_de_habitacion" editable="false" shownitems="5">
<textlistitem text="compartida"
value="compartida" selected="true"/>
<textlistitem text="single" value="single"/>
<textlistitem text="triple" value="triple"/>
<textlistitem text="quintuple" value="quintuple"/>
</combobox>
</view>
</canvas>
¿anyone knows how to catch this kind of error? It seems to me very
dificult to debug.
Thanks in advance.
J.A.