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.

Horizontal scrollbar location is different as I expected

See original GitHub issue

I 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: old And this is what I expected: expected

Big thanks if you can fix this problem ,it should be just a simple problem.(╹ڡ╹ )

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hv0905commented, Aug 19, 2018

@jespersh It works. Thanks.

0reactions
jespershcommented, Aug 19, 2018

In this particular case, then you need to add VerticalContentAlignment="Stretch" to the TextBox

Read more comments on GitHub >

github_iconTop 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 >

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