Skip to content

[iOS] [Android] ComboBoxes regression: down arrow misaligned #2607

Closed

Description

@carldebilly

Regression bug

The down arrow on ComboBoxes is misaligned since PR #2481 on both iOS and Android

Expected behavior

image

Bugged behavior

image

Environment

Nuget Package:

Package Version(s): 2.1.0-dev.1090

Affected platform(s):

  • iOS
  • Android
  • WebAssembly ??

Activity

  1. added
    kind/bug
    platform/android 🤖
    platform/ios 🍎
    kind/regression
    on Feb 5, 2020
  2. added this to the 2.1 milestone on Feb 5, 2020
  3. self-assigned this
    on Feb 5, 2020
  4. carldebilly commented on Feb 7, 2020

    @carldebilly
    MemberAuthor

    This is not a layout bug... it's a template bug!

    <Grid> definition

    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="32" />
    </Grid.ColumnDefinitions>

    Arrow declaration

    <android:TextBlock x:Name="DropDownGlyph"
    Grid.Row="1"
    Grid.Column="1"
    IsHitTestVisible="False"
    Margin="0,10,10,10"
    Foreground="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
    FontFamily="{ThemeResource SymbolThemeFontFamily}"
    FontSize="12"
    Text="&#xE0E5;"
    HorizontalAlignment="Right"
    VerticalAlignment="Center"
    AutomationProperties.AccessibilityView="Raw" />

    The problem

    The measured size is 12x13, the control got arranged at position 32,0 with size 12x33. The size of the parent <ComboBox> is 64x33.

    UWP

    That's how it's defined in UWP's generic.xaml
    image
    (this is what I found in the file present on my workstation there: C:\Program Files (x86)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.17763.0\Generic at line 11361)

  5. carldebilly commented on Feb 7, 2020

    @carldebilly
    MemberAuthor

    Ok there's 2 bugs... the first one is an alignment bug:

    HorizontalAlignment="Right"

    The second one is a template bug as described in previous comment. By fixing it, we're hidden the real bug alignment bug. (but it will be fixed)

  6. carldebilly commented on Feb 27, 2020

    @carldebilly
    MemberAuthor

    PR #2679 has been merged, producing Uno.UI v2.1.0-dev.1371 which should be available soon on Nuget there: https://www.nuget.org/packages/Uno.UI/2.1.0-dev.1371. This issue could be fixed by those changes and need to be tested again with this version of Uno.UI.

  7. carldebilly commented on Feb 27, 2020

    @carldebilly
    MemberAuthor

    Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugkind/regressionplatform/android 🤖platform/ios 🍎

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions