Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26650

Android: Using toImage on views with border properties not added to UI results in empty blob

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.4.0, Release 7.5.0
    • Fix Version/s: Release 8.1.0
    • Component/s: Android
    • Labels:
      None

      Description

      Example code:

      var image = Ti.UI.createView({
      width: 300,
      height: 300,
      backgroundColor: "#fff",
      borderRadius: 5
      });
       
      //$.index.add(image);
      setTimeout(function(){
      var newImage = Ti.UI.createImageView({
      image: image.toImage(),
      bottom: 1
      });
      $.index.add(newImage);
       
      }, 1000);
      

      This won't display anything, though an imageview is added after a second, it is just empty. However, when uncommenting the line to add the first image to the index controller, it does work.

      Also, when removing any border properties, it will work as well. This includes borderRadius, borderColor or borderWidth.

      Expected result:
      All border properties should just work and be displayed in the blob resulting from toImage().

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              topener Rene Pot
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6770
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code