[TIMOB-19143] Windows: Button does not size correctly
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2015-07-03T07:10:59.000+0000 |
| Affected Version/s | Release 4.1.0 |
| Fix Version/s | Release 5.0.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Gary Mathews |
| Assignee | Gary Mathews |
| Created | 2015-07-02T17:35:00.000+0000 |
| Updated | 2015-07-07T20:41:54.000+0000 |
Description
When creating a button and specifying its width and height to create a square the displayed button does not respect the size set and looks rectangular.
*EXAMPLE*
var win = Ti.UI.createWindow({
backgroundColor: 'blue'
});
var viewA = Ti.UI.createTextField({
top: '5dp',
width: '20dp',
height: '20dp'
});
var viewB = Ti.UI.createView({
backgroundColor: 'white',
top: '35dp',
width: '20dp',
height: '20dp'
});
var viewC = Ti.UI.createButton({
top: '55dp',
width: '20dp',
height: '20dp'
});
win.add(viewA);
win.add(viewB);
win.add(viewC);
win.open();
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/351
Verified the fix. Button sizes correctly. Closing. Environment: Appc Studio: 4.1.0.201507071122 Ti SDK: 4.1.0.v20150706111546 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-6 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1