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.

ScrollView: Scrolling horizontally leads to IndexOutOfRangeException

See original GitHub issue

Precondition: Having Content (e.g. Label) in a ScrollView

Example

Scroll horizontally until the Content leaves the Console Window and an IndexOutOfRangeException is thrown:

Index was outside the bounds of the array.
   at Terminal.Gui.TextFormatter.Draw(Rect bounds, Attribute normalColor, Attribute hotColor)
   at Terminal.Gui.View.Redraw(Rect bounds)
   at Terminal.Gui.View.Redraw(Rect bounds)
   at Terminal.Gui.ScrollView.Redraw(Rect region)
   at Terminal.Gui.View.Redraw(Rect bounds)
   at Terminal.Gui.FrameView.Redraw(Rect bounds)
   at Terminal.Gui.View.Redraw(Rect bounds)
   at Terminal.Gui.Toplevel.Redraw(Rect bounds)
   at Terminal.Gui.Application.RunLoop(RunState state, Boolean wait)
   at Terminal.Gui.Application.Run(Toplevel view, Func`2 errorHandler)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Bilibancommented, Apr 27, 2021

Indeed I was using Nuget Package (1.0.0-rc.1). Retested with 1.0.0-rc.8 and its working! Sorry for the inconvenience ^^

0reactions
ttool22commented, Aug 11, 2022

I am using combobox control, when I delete characters It throws the same error IndexOutOfRangeException

Read more comments on GitHub >

github_iconTop Results From Across the Web

UIScrollView scrolls horizontally instead of vertically?
I have a UIScrollView with a textfield and a UIImageView in it. I'm trying to make it scroll vertically (with support for device...
Read more >
how do I get vertical scrolling to work correctly with ...
I created a scrollview with a vertical layout group set in the content object. Scrolling doesn't work as I expected. I can move...
Read more >
ScrollView - .NET MAUI
Both indicates that the ScrollView will scroll horizontally and vertically. Neither indicates that the ScrollView won't scroll.
Read more >
Scrolling in a horizontal UIStackView with Storyboard
I put the leading & trailing to match the super view's edge. Put it in the vertically centered position and gave a height...
Read more >
Horizontal scroller full disable
The above code hides the horizontal scroller, but mouse wheel still scrolls horizontally even though there are no scrollers present.
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