Skip to content

CSS border-width causes text to overflow TextView #2789

Closed

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    │
└──────────────────┴───────────────────────┴────────────────┴───────────────┘

Activity

  1. self-assigned this
    on Sep 26, 2016
  2. hamorphis commented on Sep 26, 2016

    @hamorphis
    Contributor

    @3rror404 When I try this the TextView occupies the entire page and its border is drawn correctly. Are you sure you are not omitting part of the code. Maybe some dimensions set on the TextView or the TextView is in some kind of layout? Can you share the complete code to reproduce this? Thanks.

  3. hamorphis commented on Sep 26, 2016

    @hamorphis
    Contributor

    @3rror404 Never mind. I reproduced it by setting fix height. The TextView draws its border correctly but does not clip what is outside its client area.

  4. hamorphis commented on Sep 26, 2016

    @hamorphis
    Contributor

    @3rror404 Just for the record, I tried with 2.3.0 and the result is exactly the same. Nevertheless, I still need to fix this. Stay tuned...

  5. added a commit that references this issue on Sep 27, 2016
    071ef16
  6. added this to the 2.4.0 milestone on Oct 26, 2016
  7. lock commented on Aug 29, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked and limited conversation to collaborators on Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions