question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ComboBox dropdown arrow cropped and size reduced while customising the height using Style property

See original GitHub issue

Describe the bug

While customising the height of ComboBox using Style property , the dropdown arrow cropped. If we use direct Height properties, then it working fine.

Note: It will occurred while we setting small value to Height property.

Sample:

ComboBox_DropDownCropped.zip

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Extract the sample.
  2. Run the sample.
  3. Compare the first and second ComboBox dropdown arrow.
  4. Note, the second ComboBox dropdown arrow cropped and Arrow size looks small.

Expected behavior

The second ComboBox dropdown arrow should be displayed properly with same size as like as first ComboBox .

Screenshots

image

Version Info

NuGet package version:

[Microsoft.WinUI 3.0.0-preview4.210210.4]

Windows app type:

UWP Win32
Yes
Windows 10 version Saw the problem?
Insider Build (xxxxx)
October 2020 Update (19042) Yes
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
jschwizer99commented, Apr 1, 2021
            <Style TargetType="TextBox">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="2"/>
                <Setter Property="BorderThickness" Value="1"/>
            </Style>
            <Style TargetType="NumberBox" x:Key="UpDown">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="BorderThickness" Value="1"/>
            </Style>

Results in image

            <Style TargetType="TextBox">
                <Setter Property="BorderThickness" Value="1"/>
            </Style>
            <Style TargetType="NumberBox" x:Key="UpDown">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="BorderThickness" Value="1"/>
            </Style>

Results in image

for

                <NumberBox
                    Value="45"
                    SpinButtonPlacementMode="Inline"
                    Style="{StaticResource UpDown}"/>

Without Inline: image

First version, but with 5 pixel textbox border: image

0reactions
github-actions[bot]commented, Jul 29, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

css - Change color and appearance of drop down arrow
In this example I am actually hiding the default arrow and displaying my own arrow instead. .styleSelect select { background: transparent; width ...
Read more >
Controlling the height of a lightning-combobox dropdown?
I want to reduce this drop down height, but so far cannot find a way to do so. Wrapping a div with a...
Read more >
Styling lightning:combobox drop down to not hide inside ...
I the drop down hides inside the modal content area, and extends the length of the modal so there is a lot of...
Read more >
jQuery ComboBox Documentation - Appearance - Kendo UI ...
The Kendo UI ComboBox supports the following styling options: size ... The inner span element renders the dropdown arrow icon of the ComboBox...
Read more >
how can i change size of dropdown icon?? : r/PowerApps
I'd like to know how you set it to be that wide in the first place. Currently, I see no way to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found