Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-995

Second "open" of Prompt or Alert will not display the message type icon.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1
    • Fix Version/s: 2.1, 2.0.5
    • Component/s: wtk-terra
    • Labels:
      None

      Description

      Define a Prompt (as in a "bxml:define" block in a BXML file), then invoke it twice from within an application but without reloading it. The second and subsequent times the Prompt is displayed the message type icon will not be displayed; only the first time.

      The reason is the "sheetClosed" listener is clearing the "typeImageView" but it is not reloaded again for the second "open()" call.

      The attached "prompt.patch" fixes this issue.

      1. prompt.patch
        1 kB
        Roger Whitcomb

        Activity

        Hide
        rwhitcomb Roger Whitcomb added a comment -

        "trunk":
        Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraAlertSkin.java
        Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraPromptSkin.java
        Transmitting file data ..done
        Committing transaction...
        Committed revision 1792559.

        "branches/2.0.x":
        Sending .
        Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraAlertSkin.java
        Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraPromptSkin.java
        Transmitting file data ..done
        Committing transaction...
        Committed revision 1792561.

        Show
        rwhitcomb Roger Whitcomb added a comment - "trunk": Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraAlertSkin.java Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraPromptSkin.java Transmitting file data ..done Committing transaction... Committed revision 1792559. "branches/2.0.x": Sending . Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraAlertSkin.java Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraPromptSkin.java Transmitting file data ..done Committing transaction... Committed revision 1792561.
        Hide
        rwhitcomb Roger Whitcomb added a comment -

        Note: TerraAlertSkin.java has the same problem, and the "same fix" applies.

        Show
        rwhitcomb Roger Whitcomb added a comment - Note: TerraAlertSkin.java has the same problem, and the "same fix" applies.

          People

          • Assignee:
            rwhitcomb Roger Whitcomb
            Reporter:
            rwhitcomb Roger Whitcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development