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

Truncate descriptions for ribbon tooltips if they exceed 1024 characters #215

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

awakeman
Copy link
Member

NOTE: Depends on

Issues addressed by this PR

Closes #214

Following BHoM/BHoM_Engine#1586 the description of one enum type exceeds the hard limit in the MS Office XML Schema for Ribbon UIs, this affects the Create Enum and Create Type menus, causing them not to display at all. This PR truncates the description if this limit is exceded.
Before:
image

After:
image

Test files

Bug reproduces on any file/blank sheet

Changelog

Additional comments

@awakeman awakeman self-assigned this Mar 26, 2020
@FraserGreenroyd FraserGreenroyd added the type:bug Error or unexpected behaviour label Mar 26, 2020
Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

This works for me, I am able to get and see the types on the drop down and am happy with this resolving the presented issue.

@awakeman awakeman merged commit 6da2f77 into master Mar 26, 2020
@awakeman awakeman deleted the Excel_Toolkit-#214-TruncateRibbonTooltips branch March 26, 2020 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ribbon menu not displayed if any item has a tooltip that exceeds 1024 characters
2 participants