• Autosizing panels based on their children
    1 replies, posted
Hello. Recently I've started using docking and dockmargins a lot. I've found that sizing panels to their children is a bit tedious process. Some panels get unaccounted, some removed panels are still being counted et cetera. Is there a reliable and easy way to find out perfect size that would account all children and all margins/paddings? I need it at least to calculate needed height correctly.
Try using panel:InvalidateParent(true) to force the panel to autosize the same frame so you get accurate sizes with GetSize() if that's what you're looking for, I've failed too many times into creating the best layout system based in Gravities like Android Layout works
Sorry, you need to Log In to post a reply to this thread.