Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Managed TitleBar affects Control placement #38

Open
jpobst opened this issue Sep 23, 2022 · 0 comments
Open

Managed TitleBar affects Control placement #38

jpobst opened this issue Sep 23, 2022 · 0 comments
Labels
bug Something doesn't function as intended

Comments

@jpobst
Copy link
Collaborator

jpobst commented Sep 23, 2022

When using a managed TitleBar, the title bar area is considered part of the client area, and thus a Control placed at (0, 0) ends up under the title bar. When using UseSystemDecorations = true to get a system title bar, the area is not considered client area, and the control is completely visible. (The total Form size is also different.)

Controls.Add (new Panel { Left = 20, Top = 20, Width = 100, Height = 100 }).Style.BackgroundColor = SKColors.Red;

client-size

@jpobst jpobst added the bug Something doesn't function as intended label Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't function as intended
Projects
None yet
Development

No branches or pull requests

1 participant