Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1004] Android doesn't respect border* property change

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:41:19.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, border, defect
ReporterKonstantin
AssigneeBlain Hamon
Created2011-04-15T02:41:19.000+0000
Updated2017-03-02T18:19:56.000+0000

Description

I have some kind of custom component, color selector. It looks like [[Color1] [Color2] [Color3]]. I made it with views, where [ColorX] - Square with rounded borders. In event click handler I change view border* property:

ColorPicker.prototype.onColorClick = function(e, color){
    //log('onColorClick', color, this.selectedBorder, e.source.borderColor);
    if(this.selectedItem){
        //log('Change color back');
        this.selectedItem.borderWidth = this.normalBorder;
    }
    this.selectedColor = color;
    this.selectedItem = e.source;
    this.selectedItem.borderWidth = this.selectedBorder;
    //log('done', this.selectedColor);
};

I tried to change borderWidth and borderColor and failed. On android any of these properties are not changed, but everything works on iPhone. BTW color is actually selected on both platforms, but view isn't reflected on Android.

Comments

  1. Konstantin 2011-04-15

    Forgot to add:
    Platform 1.3.0, OS MacOSX, Win7/XP, Android 2.1 iPhone 3.1.3

  2. Don Thorp 2011-04-15

    This is a special case of #934

  3. Lee Morris 2017-03-02

    Closing as invalid.

JSON Source