RibbonCheckedBox in ComboBox

Mar 11, 2014 at 1:53 PM
Hi when you add some RibboncheckedBox in a RibbonComboBox, the RibbonComboBox dropdownlist has a wrong width.
It seems it was because of the RibboncheckedBox.MeasureSize() method. In this case the 'SizeMode' is Set to 'DropDown' and never evaluated, so the RibboncheckedBox will return only the CheckBox size (the square, not the control).
it could be corrected by adding a single ligne

RibbonCheckedBox.MeasureSize() near Line 266

     switch (e.SizeMode)
        case RibbonElementSizeMode.DropDown : //CBoury : Correct RibbonChekedbox Width
        case RibbonElementSizeMode.Large:
           w += iwidth + lwidth;
        case RibbonElementSizeMode.Medium:
           w += iwidth;
Marked as answer by toAtWork on 3/12/2014 at 12:12 AM
Mar 12, 2014 at 8:12 AM
Mar 12, 2014 at 6:06 PM
Do you want i upload a patch (just for a single line) ?
Mar 12, 2014 at 6:57 PM
Please avoid a patch for that single line.
Either commit it to main development branch or I'll do it next time I am doing some work on the Ribbon.