Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19143] Windows: Button does not size correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-07-03T07:10:59.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2015-07-02T17:35:00.000+0000
Updated2015-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();

Comments

  1. Gary Mathews 2015-07-03

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/351
  2. Lokesh Choudhary 2015-07-07

    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

JSON Source