Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1191] Star-rating image aspect ratio styles

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2014-12-02T16:58:21.000+0000
Affected Version/sAlloy 1.5.1
Fix Version/sn/a
ComponentsSamples & Templates
Labelsn/a
ReporterTim Statler
AssigneeTim Poulsen
Created2014-12-01T14:25:33.000+0000
Updated2018-03-07T22:28:28.000+0000

Description

Steps: 1. Run the https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/theming_widgets sample app on iOS and Android and observe star-rating images Results: Rating images are stretched (see attached). Expected: Rating images appear at their native aspect ratios. Note: I think this is probably behaving as expected/designed as a test app, but still looks off. One solution is to remove either the height or width TSS style settings in the theme or widget's styles/star.tss file, so the image is resized proportionately,
'.star': {
	height:'32dp',
 	width: '10dp',
	left:'8dp'
}

Attachments

FileDateSize
android_stretch.png2014-12-01T14:25:33.000+0000223131
ios_stretch.png2014-12-01T14:25:33.000+000023620

Comments

  1. Tim Poulsen 2014-12-01

    [~tstatler] yes, the app is working as designed (ugly as that may be). I wanted to show that properties are merged when applying the theme, as well as showing how widget themes could override base style properties.
  2. Tim Statler 2014-12-01

    Understood. I'd close the ticket invalid but don't appear to have that permission.
  3. Eric Merriman 2018-03-07

    Closing as invalid. If this is incorrect, please reopen.

JSON Source