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

Why can't I set a TabPane's buttonPadding to a dictionary?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.1
    • None
    • None

    Description

      I must be missing something really obvious here. TablePane happily
      accepts a padding value expressed as a dictionary. So does Label.
      But when the bxml serializer gets down to the TabPane below where I
      try to set its buttonPadding to the same dictionary, it barfs, saying
      "Unable to coerce org.apache.pivot.collections.HashMap to class
      org.apache.pivot.wtk.Insets". Aren't the padding values also of type
      Insets? What am I doing wrong?

      <Window xmlns="org.apache.pivot.wtk">
      <TablePane styles="{padding:{left:10,right:10,top:5,bottom:5}}">
      <columns>
      <TablePane.Column width="1*" />
      </columns>
      <TablePane.Row>
      <Label text="Some text"
      styles="{padding:{left:10,right:10,top:5,bottom:5}}" />
      </TablePane.Row>
      <TablePane.Row>
      <TabPane styles="{buttonPadding:{left:10,right:10,top:5,bottom:5}}" >
      <BoxPane TabPane.tabData="Test" />
      </TabPane>
      </TablePane.Row>
      </TablePane>
      </Window>

      Attachments

        Activity

          People

            grandinj Noel Grandin
            bvanmelle Bill van Melle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: