Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-19793

There should be a way to define a component width/height using CSS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Runtime CSS, Skinning
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      We are using CSS to completely define the layout of a Flex application. We avoid as much as we can putting skinning code inside source files other than css files. In this way, our applications are completely independent on of they way they look.
      Unfortunately when it comes to width and height of a component this rule does not apply. We use constraint layout as much as possible, but it doesn't cover the case where you want one component always 10 pixels far from the right, and always with 100 pixels of width. As far as I know, this is not possible to solve easily using CSS, so we are forced either to put those measures in the middle of the code or creating a custom style, and overriding the styleChanged method, which is a bit cumbersome.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: