MaterialSkin icon indicating copy to clipboard operation
MaterialSkin copied to clipboard

Problem with Table Layout Panel

Open ThibaudMZN opened this issue 4 years ago • 4 comments

I'm facing a strange bug using the default layout panel. When embedding controls inside of it, and then commiting a change to the materialSkinManager, all the lines seems to put some padding. It's pretty hard to explain, so here's a bunch of screenshot :

This is the base control : 1

If I spawn a new form on top (using ShowDialog), you can see that the control seems to "explode" : 2

The same behaviour can be produced if I switch the Theme to Dark Mode : 3

ThibaudMZN avatar Apr 30 '20 14:04 ThibaudMZN

Hi, thanks for reporting

I can't repro this on my side, could you share your specific setup? what's the children tree for the components? (example: Form->panel->table layout->textbox) and what properties did you change from default on each component?

This seems like padding is being added, if you're using the fill property, try setting it to none and use the anchor property instead

leocb avatar Apr 30 '20 19:04 leocb

@ThibaudMZN did you manage to fix this?

leocb avatar Jun 02 '20 14:06 leocb

I've been pushing away this issue and I think I'm gonna change this to a default ListView...

ThibaudMZN avatar Jun 02 '20 16:06 ThibaudMZN

if it helps, this seems to be somewhat related to DPI scaling

leocb avatar Jun 02 '20 17:06 leocb