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.

Hello,

I’ve found an issue where the RadioGroup-Control does not repaint correctly. Here is the code to reproduce it:

Application.Init();

Window window = new Window("Repaint Issue") {X = 0, Y = 0, Width = Dim.Fill(), Height = Dim.Fill()};
RadioGroup radioGroup = new RadioGroup(1, 1, new[] { "Short", "Longer Text  --> Will not be repainted <--", "Short" });

Button replaceButton = new Button(1, 10, "Replace Texts above")  {
    Clicked = () => { radioGroup.RadioLabels = new string[] { "Longer than before", "Shorter Text", "Longer than before" }; }
};

window.Add(radioGroup, replaceButton);
Application.Top.Add(window);
Application.Run();

The “–> Will not be repainted <–” will not be repainted with “blanks”. I think there are more issues with repainting especially when replacing SubViews and so on.

Regards, Jens

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Scordocommented, Nov 1, 2019

Hi,

thanks for the fix. When will this be available with the next nuget package? Currently I do have to call Application.Refresh to workaround it, which is really bad.

Regards, Jens

0reactions
rychlymcommented, Jan 2, 2020

Hello, I am not sure whether it has something to do with this. I have encountered troubles when updating a certain Label within a ScrollView in time of a button handler execution. I have following ScrollView: var infoView = new ScrollView(new Rect(1, 1, 40, 20)) { ContentSize = new Size(80, 40), ContentOffset = new Point(1, 1), ShowVerticalScrollIndicator = true, ShowHorizontalScrollIndicator = true }; Then added several labels. After updating one of the lablel’s text only the label text is shown and all other labels disappear including the ScrollView’s scroll bars itself. (The whole content appears again bu clicking to menu, which overrides the area of the ScrollView.)

Updated: the manual call of the ScrollView’s SetNeedsDisplay() helped, but it seems to me to be just a workaround…

Read more comments on GitHub >

github_iconTop Results From Across the Web

15 common paint problems and how you can fix them
1. Blistering and flaking. Painting a wall is exciting, but it can be frustrating when it begins to blister and flake. · 2....
Read more >
8 Common Paint Problems and How to Fix Them
Reasons for Failing Paint · 1. Cracking. If your paint has cracked, it means the paint was too thin or may have dried...
Read more >
6 Common Paint Problems and How to Fix Them
6 Common Paint Problems & How to Fix Them · Share this story · Cracking, Flaking, and Clumping · Peeling · Blistering a.k.a....
Read more >
10 Common Exterior Paint Problems and How to Fix Them
Here are the top 10 most common exterior paint problems—their causes and solutions, as well as ways to prevent them.
Read more >
7 Common Paint Problems (And How to Fix Them)
3 Steps - Learn how to fix paint problems such as flaking, peeling, cratering, mildew, sagging, dripping, lap marks, and hatbanding using this...
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