Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2043] iOS: Image View Encoding - image now scales to window widths

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:08:55.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsdefect, encoding, image, ios, regression
ReporterThomas Huelbert
AssigneeBlain Hamon
Created2011-04-15T03:08:55.000+0000
Updated2017-03-02T19:25:31.000+0000

Description

1.BaseUI>Views>Image Views>IMage View Encoding
2.note appearance of image

results: image scales to screen size. New behavior (would be much smaller), not sure if its intentional.

Comments

  1. Stephen Tramer 2011-04-15

    This is another case where previous behavior may or may not be considered "correct." We have two options here:

    • Resizing the underlying image view (the UIImageView, not the proxy view) to fit the image border when necessary
    • Letting the image automatically scale to the size of the UIImageView as appropriate

    It seems to be that the first was previous behavior, and the second is new behavior. It comes down to whether or not we want images to scale to the view size specified by the user when they indicate no width/height, or if we want the view to scale to the image when they specify no width/height.

  2. Blain Hamon 2011-04-15

    I'm going to propose that the new functionality should be the expected behavior, as it allows a means to use the older behavior: If height and width were set to be 'auto', it should work. Were the old functionality restored, there would be no way short of using transforms to scale up images.

    If we do it this way, this would be invalid.

  3. Thomas Huelbert 2011-04-15

    ticket marked invalid, new behavior os now the expected one. Thanks guys.

  4. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source