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 328463 | Differences between
and this patch

Collapse All | Expand All

(-)a/runtime.rwt/org.eclipse.rap.rwt.q07/js/org/eclipse/swt/widgets/TableColumn.js (-2 / +11 lines)
Lines 64-69 qx.Class.define( "org.eclipse.swt.widgets.TableColumn", { Link Here
64
      this._sortImage.setAppearance( "table-column-sort-indicator" );
64
      this._sortImage.setAppearance( "table-column-sort-indicator" );
65
    }
65
    }
66
    this.add( this._sortImage );
66
    this.add( this._sortImage );
67
    this.__performFakeMouseOutOnMouseMove = false;
67
  },
68
  },
68
69
69
  destruct : function() {
70
  destruct : function() {
Lines 154-160 qx.Class.define( "org.eclipse.swt.widgets.TableColumn", { Link Here
154
          this.setCapture( true );
155
          this.setCapture( true );
155
          evt.stopPropagation();
156
          evt.stopPropagation();
156
          evt.preventDefault();
157
          evt.preventDefault();
157
          widgetUtil._fakeMouseEvent( this, "mouseout" );
158
          this.__performFakeMouseOutOnMouseMove = true;
158
        } else if( this._moveable ) {
159
        } else if( this._moveable ) {
159
          this._inMove = true;
160
          this._inMove = true;
160
          this.setCapture( true );
161
          this.setCapture( true );
Lines 165-171 qx.Class.define( "org.eclipse.swt.widgets.TableColumn", { Link Here
165
          this._initialLeft = this.getLeft();
166
          this._initialLeft = this.getLeft();
166
          evt.stopPropagation();
167
          evt.stopPropagation();
167
          evt.preventDefault();
168
          evt.preventDefault();
168
          widgetUtil._fakeMouseEvent( this, "mouseout" );
169
          this.__performFakeMouseOutOnMouseMove = true;
169
        }
170
        }
170
      }
171
      }
171
    },
172
    },
Lines 207-212 qx.Class.define( "org.eclipse.swt.widgets.TableColumn", { Link Here
207
208
208
    _onMouseMove : function( evt ) {
209
    _onMouseMove : function( evt ) {
209
      if( this._inResize ) {
210
      if( this._inResize ) {
211
        if (this.__performFakeMouseOutOnMouseMove) {
212
          this.__performFakeMouseOutOnMouseMove = false;
213
          widgetUtil._fakeMouseEvent( this, "mouseout" );
214
        }
210
        var position = this.getLeft() + this._getResizeWidth( evt.getPageX() );
215
        var position = this.getLeft() + this._getResizeWidth( evt.getPageX() );
211
        // min column width is 5 px
216
        // min column width is 5 px
212
        if( position < this.getLeft() + 5 ) {
217
        if( position < this.getLeft() + 5 ) {
Lines 214-219 qx.Class.define( "org.eclipse.swt.widgets.TableColumn", { Link Here
214
        }
219
        }
215
        this._table._showResizeLine( position );
220
        this._table._showResizeLine( position );
216
      } else if( this._inMove ) {
221
      } else if( this._inMove ) {
222
        if (this.__performFakeMouseOutOnMouseMove) {
223
          this.__performFakeMouseOutOnMouseMove = false;
224
          widgetUtil._fakeMouseEvent( this, "mouseout" );
225
        }
217
        this.setLeft( evt.getPageX() - this._offsetX );
226
        this.setLeft( evt.getPageX() - this._offsetX );
218
        this.addState( org.eclipse.swt.widgets.TableColumn.STATE_MOVING );
227
        this.addState( org.eclipse.swt.widgets.TableColumn.STATE_MOVING );
219
      } else {
228
      } else {

Return to bug 328463