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

(-)js/org/eclipse/swt/widgets/TableColumn.js (-18 / +20 lines)
Lines 131-154 Link Here
131
    // Mouse listeners for resize
131
    // Mouse listeners for resize
132
    
132
    
133
    _onMouseDown : function( evt ) {
133
    _onMouseDown : function( evt ) {
134
      this._inResize = this._isResizeLocation( evt.getPageX() );
134
      if( !this._inMove && !this._inResize ) {
135
      if( this._inResize ) {
135
        if( this._isResizeLocation( evt.getPageX() ) ) {
136
        var position = this.getLeft() + this.getWidth();
136
          this._inResize = true;
137
        this._table._showResizeLine( position );
137
          var position = this.getLeft() + this.getWidth();
138
        this._resizeStartX = evt.getPageX();
138
          this._table._showResizeLine( position );
139
        this.setCapture( true );
139
          this._resizeStartX = evt.getPageX();
140
        evt.stopPropagation();
140
          this.setCapture( true );
141
        evt.preventDefault();
141
          evt.stopPropagation();
142
      } else if( this._moveable ){
142
          evt.preventDefault();
143
        this._inMove = true;
143
        } else if( this._moveable ) {
144
        this.setCapture( true );
144
          this._inMove = true;
145
        this._bufferedZIndex = this.getZIndex();
145
          this.setCapture( true );
146
        this.setZIndex( 1e8 );
146
          this._bufferedZIndex = this.getZIndex();
147
        this._table._unhookColumnMove( this );
147
          this.setZIndex( 1e8 );
148
        this._offsetX = evt.getPageX() - this.getLeft();
148
          this._table._unhookColumnMove( this );
149
        this._initialLeft = this.getLeft();
149
          this._offsetX = evt.getPageX() - this.getLeft();
150
        evt.stopPropagation();
150
          this._initialLeft = this.getLeft();
151
        evt.preventDefault();
151
          evt.stopPropagation();
152
          evt.preventDefault();
153
        }
152
      }
154
      }
153
    },
155
    },
154
156

Return to bug 276677