Hi,

I noticed that calling setAppearance on a Label resets its wrap property 
although the appearance theme contains no definition of this property. 
Example code:

   label.setWrap( false );
   label.debug( "_____ wrap before: " + label.getWrap() );
   label.setAppearance( "link-ref" );
   label.debug( "_____ wrap after: " + label.getWrap() );

results in

   DEBUG: qx.ui.basic.Label[1567]: _____ wrap before: false
   DEBUG: qx.ui.basic.Label[1567]: _____ wrap after: true

The appearance definition looks like this:

   "link-ref" : {
     initial : function( vTheme ) {
       return {
         cursor : "pointer"
       }
     }
   }

Does setAppearance() generally resets properties that are not 
explicitely defined in the appearance theme?

Thanks,
   Ralf


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to