Changeset 265


Ignore:
Timestamp:
03/22/10 10:36:55 (14 years ago)
Author:
patdui
Message:
  • fixed combobox presentation
Location:
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/XMLBrowser.as

    r264 r265  
    77        import clarin.cmdi.componentregistry.editor.model.CMDComponentElement;
    88        import clarin.cmdi.componentregistry.editor.model.CMDSpec;
    9 
     9       
    1010        import flash.display.DisplayObject;
    1111        import flash.utils.getTimer;
    12 
     12       
    1313        import mx.collections.ArrayCollection;
    1414        import mx.collections.XMLListCollection;
     
    1717        import mx.controls.ComboBox;
    1818        import mx.controls.HRule;
     19        import mx.controls.Label;
    1920        import mx.controls.Text;
     21        import mx.core.ClassFactory;
    2022        import mx.core.UIComponent;
    2123        import mx.managers.IFocusManagerComponent;
     
    154156                public static function createValueSchemeComboBox():ComboBox {
    155157                        var result:ComboBox = new ComboBox();
     158                        result.itemRenderer=new ClassFactory(Label);                   
    156159                        result.labelFunction = function(item:Object):String {
    157160                                var xmlItem:XML = item as XML;
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/ValueSchemeInput.as

    r264 r265  
    3333                        textField.editable = false;
    3434                        enumeration = createEnumeration();
     35                        enumeration.width = 300;
    3536                }
    3637
Note: See TracChangeset for help on using the changeset viewer.