Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13631] Android: Slider control height does not scale with background

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2017-07-12T20:50:55.000+0000
Affected Version/sRelease 3.1.0, Release 3.2.3
Fix Version/sn/a
ComponentsAndroid
Labelsparity, qe-3.1.1
ReporterDustin Hyde
AssigneeEric Merriman
Created2013-04-19T21:51:10.000+0000
Updated2017-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

FileDateSize
slider-height-android.png2013-04-19T21:51:10.000+000024368
slider-height-ios.png2013-04-19T21:51:10.000+0000139781
slider-height-mobileweb.png2013-04-19T21:51:10.000+0000199248

Comments

  1. Paras Mishra 2014-04-04

    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
  2. Lee Morris 2017-07-12

    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

JSON Source