[TIMOB-5516] MobileWeb: Incorrect paddings in Button object
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-22T00:24:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.2 |
Components | MobileWeb |
Labels | qe-testadded |
Reporter | Misha Vasko |
Assignee | Neeraj Gupta |
Created | 2011-08-10T09:35:07.000+0000 |
Updated | 2014-07-22T10:18:51.000+0000 |
Description
Incorrect paddings in Button object. When width of the button is small the align of the title is not center.
var win = Ti.UI.currentWindow;
win.backgroundColor = '#EEE';
var b1 = Ti.UI.createButton({
title: 'Button',
top: 10,
left: 10,
height: 40,
width: 47,
backgroundColor: '#888'
});
win.add(b1);
Expected behavior: title of the button should be in the center of the button.
Actual result: space between left border of button and first letter of title is bigger than space between last letter of title and right border of button.
please provide more details. Especially expected result and code to reproduce
please provide an example, avtual result and expected results
Verified fix on: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120827143312 Chrome 21.0.xx Firefox 15 Safari 6.0 Android 4.0.4 default browser,chrome 18.0.xx ,firefox 15.0 Iphone 5.0.1 mobile safari