Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25581] Windows: borderWidth should be changed 0 to 1 when borderColor is set

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-01-04T00:38:38.000+0000
Affected Version/sRelease 7.0.0
Fix Version/sRelease 7.1.0
ComponentsWindows
Labelsparity
ReporterKota Iguchi
AssigneeKota Iguchi
Created2017-12-04T01:52:40.000+0000
Updated2018-03-02T18:02:42.000+0000

Description

According the description of Ti.UI.View.borderWidth, {quote} If borderColor is set without borderWidth, this value will be changed to 1 of the unit declared as 'ti.ui.defaultunit' in tiapp.xml descriptor. {quote} http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-property-borderWidth Titanium Windows doesn't implement it, it remains 0 even after borderColor is set.
var win = Ti.UI.createWindow();

var view = Ti.UI.createView({
    width: 100, height: 100, backgroundColor: 'blue',
    borderColor: 'red'
});

win.add(view);
win.open();
Expected: Red border should be shown around blue view. Support for 'ti.ui.defaultunit' is split into TIMOB-25582

Comments

  1. Kota Iguchi 2017-12-05

    https://github.com/appcelerator/titanium_mobile_windows/pull/1162
  2. Samir Mohammed 2018-03-02

    Closing ticket; Verified fix in SDK Version: 7.1.0.v20180228160738 and SDK Version: 7.2.0.v20180301101144.

JSON Source