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

(-)Eclipse SWT/win32/org/eclipse/swt/widgets/Sash.java (+14 lines)
Lines 207-212 Link Here
207
			POINT pt = new POINT ();
207
			POINT pt = new POINT ();
208
			if ((style & SWT.VERTICAL) != 0) {
208
			if ((style & SWT.VERTICAL) != 0) {
209
				if (wParam == OS.VK_UP || wParam == OS.VK_DOWN) break;
209
				if (wParam == OS.VK_UP || wParam == OS.VK_DOWN) break;
210
				if(this.isParentrtl()) {
211
					step=-step;
212
				}
210
				pt.x = wParam == OS.VK_LEFT ? -step : step;
213
				pt.x = wParam == OS.VK_LEFT ? -step : step;
211
			} else {
214
			} else {
212
				if (wParam == OS.VK_LEFT || wParam == OS.VK_RIGHT) break;
215
				if (wParam == OS.VK_LEFT || wParam == OS.VK_RIGHT) break;
Lines 244-249 Link Here
244
			Event event = new Event ();
247
			Event event = new Event ();
245
			event.x = newX;
248
			event.x = newX;
246
			event.y = newY;
249
			event.y = newY;
250
			//fix trial
251
			event.x = pt.x;
252
			//end of fix trial
247
			event.width = width;
253
			event.width = width;
248
			event.height = height;
254
			event.height = height;
249
			sendSelectionEvent  (SWT.Selection, event, true);
255
			sendSelectionEvent  (SWT.Selection, event, true);
Lines 417-420 Link Here
417
	return result;
423
	return result;
418
}
424
}
419
425
426
//tmp fix start
427
public boolean isParentrtl() {
428
	int parentStyle=getParent().getStyle();
429
430
	return ((parentStyle&SWT.RIGHT_TO_LEFT)!=0);
431
432
}
433
//tmp fix end
420
}
434
}

Return to bug 335857