|
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 206-212
qx.Class.define( "org.eclipse.swt.widgets.TableColumn", {
Link Here
|
| 206 |
}, |
207 |
}, |
| 207 |
|
208 |
|
| 208 |
_onMouseMove : function( evt ) { |
209 |
_onMouseMove : function( evt ) { |
|
|
210 |
var widgetUtil = org.eclipse.swt.WidgetUtil; |
| 209 |
if( this._inResize ) { |
211 |
if( this._inResize ) { |
|
|
212 |
if (this.__performFakeMouseOutOnMouseMove) { |
| 213 |
this.__performFakeMouseOutOnMouseMove = false; |
| 214 |
widgetUtil._fakeMouseEvent( this, "mouseout" ); |
| 215 |
} |
| 210 |
var position = this.getLeft() + this._getResizeWidth( evt.getPageX() ); |
216 |
var position = this.getLeft() + this._getResizeWidth( evt.getPageX() ); |
| 211 |
// min column width is 5 px |
217 |
// min column width is 5 px |
| 212 |
if( position < this.getLeft() + 5 ) { |
218 |
if( position < this.getLeft() + 5 ) { |
|
Lines 214-219
qx.Class.define( "org.eclipse.swt.widgets.TableColumn", {
Link Here
|
| 214 |
} |
220 |
} |
| 215 |
this._table._showResizeLine( position ); |
221 |
this._table._showResizeLine( position ); |
| 216 |
} else if( this._inMove ) { |
222 |
} else if( this._inMove ) { |
|
|
223 |
if (this.__performFakeMouseOutOnMouseMove) { |
| 224 |
this.__performFakeMouseOutOnMouseMove = false; |
| 225 |
widgetUtil._fakeMouseEvent( this, "mouseout" ); |
| 226 |
} |
| 217 |
this.setLeft( evt.getPageX() - this._offsetX ); |
227 |
this.setLeft( evt.getPageX() - this._offsetX ); |
| 218 |
this.addState( org.eclipse.swt.widgets.TableColumn.STATE_MOVING ); |
228 |
this.addState( org.eclipse.swt.widgets.TableColumn.STATE_MOVING ); |
| 219 |
} else { |
229 |
} else { |