Thanks to visit codestin.com
Credit goes to github.com

Skip to content

left/right labels border in FlexboxLayout show extra border in iOS #10548

@liuy97

Description

@liuy97

Issue Description

<ActionBar title="My App"> </ActionBar>

<GridLayout>
  <ListView [items]="items">
    <ng-template let-item="item">
      <StackLayout [nsRouterLink]="['/item', item.id]">
        <FlexboxLayout justifyContent="flex-start" alignItems="center">
          <Label
            textAlignment="right"
            class="contact-type"
            text="{{ 'Contact' }}"
          ></Label>
          <Label
            textAlignment="right"
            class="contact-name"
            marginLeft="5"
            [text]="item.name"
          ></Label>
        </FlexboxLayout>
      </StackLayout>
    </ng-template>
  </ListView>
</GridLayout>
import { Component, OnInit } from '@angular/core';

import { Item } from './item';
import { ItemService } from './item.service';

@Component({
  selector: 'ns-items',
  styles: `
  .contact-type {
    font-size: 13;
    white-space: normal;
    border-right-color: blue;
    border-right-width: 1;
    padding-right: 5;
  }
  
  .contact-name {
    font-size: 15;
    color: blue;
    white-space: normal;
  }`,
  templateUrl: './items.component.html',
})
export class ItemsComponent implements OnInit {
  items: Array<Item>;

  constructor(private itemService: ItemService) {}

  ngOnInit(): void {
    this.items = this.itemService.getItems();
  }
}

Simulator Screenshot - iPhone 14 Pro Max - 2024-05-14 at 10 14 01

Reproduction

https://stackblitz.com/edit/nativescript-stackblitz-templates-wmcpdw

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions