Changing button graphic via css breaks the button behavior

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • fx2.1
    • Affects Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      2.1-b14

      In my app I change button graphic for hover and armed button states:

      .button:hover {
          -fx-graphic: url("hover.png");
      }

      .button:armed {
          -fx-graphic: url("armed.png");
      }

      When I press and release mouse button outside of the graphic bounds I get correct change of button image according to hover/armed events.
      When I do the same with the mouse cursor within the graphic bounds it all gets broken and starts to behave as if the button just toggles between armed and hover states.

        1. armed.png
          armed.png
          1 kB
        2. Bug.css
          0.3 kB
        3. Bug.java
          1 kB
        4. hover.png
          hover.png
          1 kB

            Assignee:
            Kinsley Wong (Inactive)
            Reporter:
            Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: