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 275144
Collapse All | Expand All

(-)src/org/eclipse/rwt/widgets/Upload.js (-11 / +11 lines)
Lines 306-317 Link Here
306
     */
306
     */
307
    _onEnabled : function( evt ) {
307
    _onEnabled : function( evt ) {
308
      qx.ui.core.Widget.flushGlobalQueues();
308
      qx.ui.core.Widget.flushGlobalQueues();
309
      if( evt.getData() ) {
309
//      if( evt.getData() ) {
310
        this._uploadField._button._input.style.height
310
//        this._uploadField._button._input.style.height
311
          = this._uploadField.getHeight();        
311
//          = this._uploadField.getHeight();        
312
      } else {
312
//      } else {
313
        this._uploadField._button._input.style.height = "0px";
313
//        this._uploadField._button._input.style.height = "0px";
314
      }
314
//      }
315
    },
315
    },
316
    
316
    
317
    /*
317
    /*
Lines 319-329 Link Here
319
     * despite the hidefocus style settings.
319
     * despite the hidefocus style settings.
320
     */
320
     */
321
    _onFocus : function( evt ) {
321
    _onFocus : function( evt ) {
322
      var input = this._uploadField._button._input;
322
//      var input = this._uploadField._button._input;
323
      this._uploadField._button._input.onblur = function() {
323
//      this._uploadField._button._input.onblur = function() {
324
        input.onblur = null;
324
//        input.onblur = null;
325
        input.onfocus = function() { input.blur(), input.onfocus = null };
325
//        input.onfocus = function() { input.blur(), input.onfocus = null };
326
      };
326
//      };
327
    },
327
    },
328
    
328
    
329
    // TODO [fappel]: would a property be the better solution?
329
    // TODO [fappel]: would a property be the better solution?

Return to bug 275144