Menu

#47 empty style break style inheritance

open
nobody
None
5
2007-01-10
2007-01-10
Anonymous
No

In this example MyPane.button inherits background
property and have own foreground. If second style
is empty - it lost background property from base style!

It is very uncomfortable.

I cannot make empty style for changing later.

example:

nextapp.echo2.app.button.AbstractButton#default
{
background : #DDE9FF;
foreground : #000000;
}

nextapp.echo2.app.button.AbstractButton#MyPane.button extends default
{
/* if you remove this property - lost inheritence */
foreground : #FF0000;
}

Discussion


Log in to post a comment.