Skip to content

Fix ROOT title box centring#59

Merged
chenel merged 1 commit intomainfrom
bug/awilkins_root_title_centreing
Apr 27, 2026
Merged

Fix ROOT title box centring#59
chenel merged 1 commit intomainfrom
bug/awilkins_root_title_centreing

Conversation

@AlexWilkinsonnn
Copy link
Copy Markdown
Member

Without setting the title box width to the full canvas width, duneStyle->SetTitleX(.5); puts the left side of the title box in the middle, making your title nicely centred but only on the right side of the canvas like so:

Screenshot from 2026-04-24 20-56-42

@chenel chenel self-requested a review April 27, 2026 20:39
Copy link
Copy Markdown
Collaborator

@chenel chenel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually seems like a failure of the SetTitleAlign(22); call just before, but this is such a low-risk fix that we should just do it and not worry about debugging any further.

@chenel chenel merged commit 8d6dd0c into main Apr 27, 2026
2 checks passed
@chenel chenel deleted the bug/awilkins_root_title_centreing branch April 27, 2026 20:40
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

Successfully merging this pull request may close these issues.

2 participants