Fluent.Ribbon icon indicating copy to clipboard operation
Fluent.Ribbon copied to clipboard

RibbonContextualTabGroup does not Expand when Header is Wider than Content

Open dartt opened this issue 4 years ago • 4 comments
trafficstars

If the header of a RibbonContextualTabGroup is wider than the tabs it contains, then it will not expand to show the group header text.

I've attached a small window XAML demonstrating the issues.

MainWindow.zip

I expect to see the full 'A Long Header Text' header text but instead it is only as wide as the 'Tab 1' tab and the header text is truncated.


Environment

  • Fluent.Ribbon v8.0.3
  • Windows 10
  • .NET Framework 4.8

dartt avatar Feb 05 '21 15:02 dartt

image

dartt avatar Feb 05 '21 15:02 dartt

That's intentional as i expect it to not be larger than the horizontal space available above the tabs it belongs to. But i would be happy to accept a PR that adds an optional switch to RibbonContextualTabGroup to allow it to use it's desired size instead of being limited by it's tabs.

batzen avatar Feb 05 '21 15:02 batzen

Hi Batzen,

Thanks for the quick response. I think we will work around this issue for now.

We just upgraded from version 5 to version 8 and this behaviour seems to be new - our tabs previously seemed to keep much more of their desired width. Here is a picture of the same test app using v5. image

If we have the resource, we may try and create a PR to add a flag to change this behaviour but I don't think we will be able to right now.

Thanks again.

dartt avatar Feb 08 '21 16:02 dartt

For anyone else who is trying to work around this issue:

Our solution was to simply pad either side of the small tab header string with enough spaces to match the width of the contextual tab header string.

e.g. Header=" VIEW " image

dartt avatar Feb 08 '21 16:02 dartt

Closing because no one seems interested in helping with this.

batzen avatar May 01 '24 16:05 batzen