xamarin/Xamarin.Forms

Button text does not truncate

开放

#1,812 创建于 2018年2月6日

 (6 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/layoute/7 :clock7:help wantedp/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Bug report best practices: https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues

Description

Migrating https://bugzilla.xamarin.com/show_bug.cgi?id=59262

Button text does not truncate. If the buttons are in a grid, on Android, it works, on iOS it does not. If the buttons are in a stacklayout, it does not work on both Android and iOS.

Steps to Reproduce

  1. Run app Note that on Android, the button text is truncated, and that on iOS it is not.
  2. Change MainPage to new stackbutton(); Run App (this uses a stacklayout instead of grid)
  3. Note that the button does not truncate on both iOS and Android

Expected Behavior

Button text is truncated

Actual Behavior

Button text is not truncated

Basic Information

  • Version with issue: 2.5.0.122203
  • Last known good version: N/A
  • IDE: VS2017
  • Platform Target Frameworks:
    • iOS: yes
    • Android: yes
    • UWP: not tested
  • Android Support Library Version: 25
  • Nuget Packages: just forms
  • Affected Devices: tested on nexus 5x on Android 7, and iphone 5s simulator on iOS 9.3

Screenshots

https://imgur.com/a/NCbN2

Reproduction Link

https://www.dropbox.com/s/d25272c3mzewksf/btnsampletruncate.zip?dl=0

贡献者指南