Panel:Center
Panel:Center()
Description
Centers the panel on its parent.
See Panel:CenterHorizontal and Panel:CenterVertical for more specialized functions.
This will center the panel using the current size of the panel, so it should be called AFTER setting or adjusting the size of the panel.
Take special care when using Panel:Dock as it will not update the size immediately.
You may want to use Panel:PerformLayout to set positions of child panels.
Page views: 21,797
Updated: This Week
Updated: This Week
Garry's Mod
Rust
Steamworks
Wiki Help