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.

Card doesn't appear properly when instanciated from code

See original GitHub issue

If you instantiate Cards from any event in your code, the actual display seems to be way off, any ideas why ?

` MaterialCard card = new MaterialCard(); card.Margin = new System.Windows.Forms.Padding(14); card.MouseState = MaterialSkin.MouseState.HOVER; card.Padding = new System.Windows.Forms.Padding(14); card.Size = new System.Drawing.Size(200, 100);

flowLayoutPanel1.Controls.Add(card); `

AS you can see, the first card is instantiated in design mode, looks fine, but the 3 others look weird.

Capture

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ThibaudMZNcommented, Jan 22, 2020

@leocb problem solved with latest update 2.1.1, Thanks !

1reaction
ThibaudMZNcommented, Jan 20, 2020

I didn’t tested yet, I’ll do it this next days and let you know !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Instantiating card deck
Hi, So I am making a small card game. Nothing fancy, and I decided to instantiate the whole deck at once. The problem...
Read more >
Why is it that if I don't instantiate my variable in the current ...
Any variable declared outside of a function belongs to the global scope, and is therefore accessible from anywhere in your code. Each function ......
Read more >
ap csa ch 9 mcq Flashcards
The code segment will not execute because the Bird variable b cannot be instantiated as a Hawk. Tap the card to flip.
Read more >
Instantiate proper class based on some input
I'm attempting to understand how "switch as a code smell" applies when the proper code path is determined by some observable piece of...
Read more >
Unity Tutorial: How to Make and Instantiate Prefabs - YouTube
Prefabs are the building blocks of any Unity project. ... how to instantiate one in code, and show an example of prefabs in...
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