NativeScript/NativeScript

[Bug] The linear gradient is not correctly applied in Android

Open

#6,054 建立於 2018年7月11日

在 GitHub 查看
 (8 留言) (3 反應) (0 負責人)TypeScript (23,592 star) (1,634 fork)batch import
backlogbughelp wantedos: androidseverity: low

描述

The below-attached CSS snippet with linear gradient will not be applied correctly for Android. XML:

 <StackLayout>
        <Label text="Linear gradient" class="h1 text-center"/>
        <StackLayout  class="test" ></StackLayout>
    </StackLayout>

CSS:

.test {   
    width:24;  
    height: 200;  
    background: linear-gradient(to top, white 50%, green);
}

Android result: screen shot 2018-07-11 at 10 13 25 am

Expected result: screen shot 2018-07-11 at 10 09 24 am


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

貢獻者指南