Details

    • Type: Improvement
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      SDK 3.5.0.GA

      Description

      See an example in this Q&A
      Here is an example of something that seems very difficult to do with Titanium:
      This could be an example of a label that is using a specific font and is long, stretching over a single screen line. We may want the same paragraph to contain a different typeface And we may also have an ICON (ImageView)- all in a single paragraph on the screen.

      How do we create such a "paragraph" in Titanium? The underlying issue seems to be that when using a Label in a horizontal layout, what we probably want is that the following item in the layout should be horizontally layed out with the last line in the Label, and not with the entire Label (which is the Label width). Thus, Labels should receive different treatment in horizontal layouts, enabling developers to "concatenate" labels, or labels with images, etc.

      Thus the suggestion is:
      1. In a horizontal layout, the "left" (or "right", in a right aligned label) of the item after the Label should be the offset relative to the last line of the label, and not relative to the label width (in a multi-line label)
      2. The "top" property of the item after the label should be relative to the second-to-last line of the label, if this item starts horizontally aligned with the last line of the label.

      Perhaps to maintain backwards compatibility with existing code, we can add a new "inline" layout, which behaves identically to "horizontal" with the exception of handling the next item following a Label.

        Attachments

          Activity

            People

            • Assignee:
              sliang Shuo Liang
              Reporter:
              mokesmokes Mark Mokryn
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration