Skip to content

CSS border-width causes text to overflow TextView #2789

@3rror404

Description

@3rror404

Setting a border-width CSS value on a TextView cause the text to overflow the bounds of the element when using tns-core-modules 2.4.0-2016-09-21-4189. This was working correctly in 2.3.0

ns-textview-overflow

Reproducable using the Hello World template and the code below.

XML:

<Page xmlns="http://schemas.nativescript.org/tns.xsd">
  <TextView />
</Page>

CSS:

TextView {
    border-width: 1;
}
┌──────────────────┬───────────────────────┬────────────────┬───────────────┐
│ Component        │ Current version       │ Latest version │ Information   │
│ nativescript     │ 2.3.0                 │ 2.3.0          │ Up to date    │
│ tns-core-modules │ 2.4.0-2016-09-21-4189 │ 2.3.0          │ Up to date    │
│ tns-android      │                       │ 2.3.0          │ Not installed │
│ tns-ios          │ 2.3.0                 │ 2.3.0          │ Up to date    │
└──────────────────┴───────────────────────┴────────────────┴───────────────┘

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions