Horizontal scrollbar location is different as I expected
See original GitHub issueI just created a Textarea Textbox with following code:
<TextBox Grid.Row="1" Margin="4" Style="{StaticResource MaterialDesignTextAreaTextBox}"
materialDesign:HintAssist.Hint="多条URL请用回车换行,支持:HTTP FTP"
TextWrapping="NoWrap" HorizontalScrollBarVisibility="Auto"
AcceptsReturn="True" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" />
Everything is ok, except the horizontal scrollbar.
When The text content can’t fill all lines of the textbox, the horizontal scrollbar shows under the text , not at the bottom of the textarea. like this image:
And this is what I expected:
Big thanks if you can fix this problem ,it should be just a simple problem.(╹ڡ╹ )
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Horizontal scrollbar appears with overflow content on right ...
Scrollbars appear when elements within another element are too big to fit. For this to work the browser needs to know the exact...
Read more >Fix unwanted horizontal scroll and whitespace with Overflow
Sometimes elements on a page can exist outside the viewport, and an unintended side effect can be horizontal or sideways scrolling that ...
Read more >Finding/Fixing Unintended Body Overflow
Sometimes horizontal overflow is more elusive. Like when it doesn't trigger a horizontal scrollbar, but you can still expose the overflow by ...
Read more >Overflow Issues In CSS
An overflow issue occurs when a horizontal scrollbar unintentionally appears on a web page, allowing the user to scroll horizontally. It can be ......
Read more >Horizontal Scrolling in Web Design: How to Do It Well
Horizontal scrolling can be achieved by clicking and dragging a horizontal scroll bar, swiping sideways on a desktop trackpad or trackpad mouse, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jespersh It works. Thanks.
In this particular case, then you need to add
VerticalContentAlignment="Stretch"
to the TextBox