Hi,
With this 3rd form, I get same results as 2nd one:
qx.Class.define("Caja", {
extend : qx.ui.layout.BoxLayout,
properties: {
width: {
refine: true,
init: 'auto'
},
height: {
refine: true,
init: 'auto'
}
}
});
I mustn't be understanding something about appearances and properties.
dperez wrote:
>
> Hi,
>
> I used to have this before:
>
> qx.Class.define("Box", {
> extend : qx.ui.layout.BoxLayout,
> construct : function(orientacion) {
> arguments.callee.base.apply(this, arguments);
> this.auto();
> },
> });
>
> Now I have changed it to use a custom appearance:
>
> qx.Class.define("Box", {
> extend : qx.ui.layout.BoxLayout,
> properties: {
> appearance: {
> refine: true,
> init: 'caja'
> }
> }
> });
>
> This is the 'caja' appearance:
>
> 'caja': {
> style: function(states) {
> return {
> width: 'auto',
> height: 'auto'
> }
> }
> },
>
> Why aren't they equivalent?
> The 2nd one doesn't show boxes with an auto size.
>
> Thanks for any clarification.
>
> Regards
> David
>
--
View this message in context:
http://www.nabble.com/Apperance-tf3982279.html#a11305585
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel