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

"Auto" size for ribbon group box header to support custom font sizes #551

Closed
wants to merge 1 commit into from

Conversation

chrfin
Copy link
Contributor

@chrfin chrfin commented Mar 28, 2018

We are currently implementing themes in our app and I found out that the group box name in the ribbon has a hard-coded height of 17, which is a problem if you increase the overall font-size or change to a larger font.
Changing that to "Auto" did not cause any problems as far as I could see, but makes it possible to increase the font-size without the need to overwrite the control-template on our side (which is what we do at the moment). This makes the following possible - a little crazy just to show of ;-):
image
==>
image

All other sizes could be adapted with inherited styles and just setting sizes to "Auto" or values calculated out of the font-size (like ContentHeight of the ribbon). If someone else wants to support this please send me a message and I'll collect all places I needed to adapt.

@batzen batzen added the Styles label Mar 28, 2018
@batzen batzen self-assigned this Mar 28, 2018
@batzen batzen changed the title "Auto" size for ribbon group box "down-grid" to support custom font sizes "Auto" size for ribbon group box header to support custom font sizes Mar 28, 2018
@batzen batzen closed this in 95f289a Mar 28, 2018
@chrfin chrfin deleted the develop branch March 29, 2018 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants