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

Window Borders #139

Open
khaf opened this issue Feb 5, 2020 · 2 comments
Open

Window Borders #139

khaf opened this issue Feb 5, 2020 · 2 comments

Comments

@khaf
Copy link

khaf commented Feb 5, 2020

When choosing Window.SetBorder(BorderNone) and Window.SetTitleButtons(ButtonDefault), while the border will not be drawn, there is still an empty border which wastes the screen space. Is there a way to avoid that?

@VladimirMarkelov
Copy link
Owner

What happens if you window.SetPaddings(0,0)? Default is (1,1). The look may be what you want but it may adds some undesirable issues: e.g, controls on borders(at least top and bottom lines) would not receive mouse events because "mouse" processing method in Window does not check padding size.

@khaf
Copy link
Author

khaf commented Feb 6, 2020

hah, window.SetPaddings(0, 0) worked in a way. Seems that it still draws the empty borders, but does the coordinate calculations right. I'll fix it and submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants