This is a migrated thread and some comments may be shown as answers.

Bug in RibbonBar resizing

1 Answer 90 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Deborah
Top achievements
Rank 1
Deborah asked on 03 May 2011, 12:54 AM
I am using the Ribbon bar. I am attaching a screen shot of the ribbon as shown in my application.

When the user minimizes the application, and then restores it, the ribbon buttons are messed up as you can see from the second screen shot I am attaching. Notice that any buttons that are in button groups no longer have any text.

If the user clicks the up arrow in the upper right corner to hide and then show the toolbar, it resizes back to the original display.

Is this a known bug? Any idea on how soon it will be fixed?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 May 2011, 09:06 AM
Hello Deborah,

Thank you for the writing.

Another customer reported this form inheritance behavior as well. The collapse operation in RibbonBar elements is performed in the ExpandableStackLayout class and each item in it that derives from the CollapsibleElement class can be expanded or collapsed. By default, ExpandableStackLayout checks whether the sum of all sizes of the elements is larger than the available space and calls the CollapseToStep method for these elements with CollapseStep smaller than CollapseMaxSteps. In your scenario this logic is broken. There is an easy work-around with layout update on form resize:

 

private void Form_Resize(objectsender, EventArgs e)
{
            radRibbonBar1.RibbonBarElement.InvalidateMeasure(true);
            radRibbonBar1.RibbonBarElement.UpdateLayout();
}

If you have any further questions, do not hesitate to ask.

 

Best wishes,
Peter
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
RibbonBar
Asked by
Deborah
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or