Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 278361 | Differences between
and this patch

Collapse All | Expand All

(-)js/org/eclipse/swt/widgets/Combo.js (+6 lines)
Lines 652-658 Link Here
652
    // Set methods
652
    // Set methods
653
    
653
    
654
    setItems : function( items ) {
654
    setItems : function( items ) {
655
      // [if] Workaround for bug:
656
      // 278361: [Combo] Overlays text after changing items
657
      // https://bugs.eclipse.org/bugs/show_bug.cgi?id=278361
658
      // Items are not removed from DOM if the display = false.
659
      this._list.setDisplay( true );
655
      this._list.removeAll();
660
      this._list.removeAll();
661
      this._list.setDisplay( false );
656
      for( var i = 0; i < items.length; i++ ) {
662
      for( var i = 0; i < items.length; i++ ) {
657
        var item = new qx.ui.form.ListItem();
663
        var item = new qx.ui.form.ListItem();
658
        item.setLabel( "(empty)" );
664
        item.setLabel( "(empty)" );

Return to bug 278361