Search code examples
eclipse-rap

How to set own image for a cursor


If I set the cursor for a Label in a css-file as shown below it works as expected. The cursor is a "wait-cursor" if it is moved over the Label

Label.mylabel:hover {
    cursor: wait;
}

As it is described in the RWT-Theming-Reference the following should also be possible

Label.mylabel:hover {
    cursor: url( resources/cursor.gif );
}

But I can not see my cursor.
How can I set an own image for a cursor?


Solution

  • Turns out that there is a bug in RAP that prevents custom cursors from being rendered. I'll provided a fix that will likely be included in the 3.0.1 release.

    Update: the fix is merged and will be available in 3.1 M1 and 3.0.1.