Community
Participate
Working Groups
If I select a single line Text with right text-orientation no cursor appears. I was able to reproduce this behavior in Opera 9/10 and IE 7/8 with RAP 1.2.2 and RAP 1.3M5. I believe it is an issue with the qooxdoo TextField, but I can't investigate this further just now. Here is a small EntryPoint: public class DemoEntryPoint implements IEntryPoint { public int createUI() { final Display display = new Display(); final Shell shell = new Shell(display, SWT.NO_TRIM); shell.setText("Text Demo"); shell.setLayout(new GridLayout()); new Text(shell, SWT.BORDER | SWT.SINGLE | SWT.RIGHT); shell.setMaximized(true); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } return 0; } } Regards Philipp
In my tests, the normal mouse-pointer is displayed instead of the cursor. As far as i can tell, this is the default behavior in IE and Opera when hovering a selection. (Probably to indicate that the selection is draggable.) It has nothing to do with with the orientation or qooxdoo.
As stated in comment #1, this behaviour is controlled by the browsers. Please feel free to reopen if you disagree.
You seem to have misunderstood me due to the fact, that I didn't described the behavior well enough. And I'm sorry for that. By cursor I didn't mean the current mouse cursor. In fact the behavior of the mouse cursor looks quite alright. No, by cursor I meant the flashing vertical line that indicates that the Text has focus and may receive input. As I stated earlier this only appears in IE and Opera and has very well something to do with the text orientation. I think I'll find some time to investigate this on the weekend Regards, Philipp
Okay, so you mean the insertion marker (caret). But that the caret is missing WHILE something is selected is quite normal. You probably mean it is missing AFTERWARDS, as it is now positioned on the most right of the widget and due to a clipping bug invisible. (At least that's what i could find using IE8).
Google found this: http://swatelier.info/at/forms/textBox.htm
Created attachment 163878 [details] fix This should fix it for all browser.
Applied patch to CVS HEAD Adjusted width-calculation in Text#computeSize()
(In reply to comment #7) > Applied patch to CVS HEAD > Adjusted width-calculation in Text#computeSize() Works like a charm. Thanks in advance.