[TIMOB-13631] Android: Slider control height does not scale with background
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-12T20:50:55.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.2.3 |
Fix Version/s | n/a |
Components | Android |
Labels | parity, qe-3.1.1 |
Reporter | Dustin Hyde |
Assignee | Eric Merriman |
Created | 2013-04-19T21:51:10.000+0000 |
Updated | 2017-07-12T20:50:55.000+0000 |
Description
Android: Slider control height does not scale with background.
Parity issue.
Test Steps:
1. Run code (app.js):
var win = Ti.UI.createWindow({
backgroundColor : 'white',
layout :'vertical'
});
var slider = Ti.UI.createSlider({
backgroundColor : win.backgroundColor,
min : 0,
max : 1000000,
value : 0,
height : '40%',
width : '90%'
});
var button = Ti.UI.createButton({
top : '20%',
height : '10%',
width : '90%'
});
function setButtonTitle(value)
{
button.title = 'Call Console ' + Math.round(value) + ' Times'
}
setButtonTitle(slider.value);
slider.addEventListener('change',function(){
setButtonTitle(slider.value);
});
button.addEventListener('click', function(){
var sliderValue = Math.round(slider.value);
for(var i = 0; i <= sliderValue; i++)
console.log(i);
});
win.add(button);
win.add(slider);
win.open();
Actual Result:
Android: Slider control height does not scale with background.
Expected Result:
Android: Slider control height does scale with background (as with iOS and MobileWeb).
Attachments
File | Date | Size |
---|---|---|
slider-height-android.png | 2013-04-19T21:51:10.000+0000 | 24368 |
slider-height-ios.png | 2013-04-19T21:51:10.000+0000 | 139781 |
slider-height-mobileweb.png | 2013-04-19T21:51:10.000+0000 | 199248 |
Issue is reproducible. Tested on: Device : Google Nexus 4, Android Version: 4.1.1 Device : Google Nexus 7, Android Version: 4.4.2 SDK: 3.2.3.v20140403105720 CLI version : 3.2.3-alpha2 OS : MAC OSX 10.9.2 Alloy: 1.3.1 ACS: 1.0.14 npm:1.3.2 Appcelerator Studio, build: 3.2.3.201403271839 titanium-code-processor: 1.1.1-alpha XCode : 5.1
Verifying that has been fixed as I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131