Panel border goes missing - Fix provided

Dec 12, 2013 at 7:25 PM
Edited Dec 12, 2013 at 7:26 PM
Hello, good job on the 2013 theme. Quite satisfied.
I got a hold of the source code to figure out why panel border goes missing after opening a submenu from one of the buttons on the panel.

figured it out and would like to share it, in case this hasn't been fixed already.
Tried to look for any changes done regarding this particular bug but couldn't find any so here it goes:

Change this block of code, located under RibbonProfessionalRenderer.cs line 3392
if (e.Panel.Selected)
                {
                    if (e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2007 | e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2010) //Michael Spradlin - 05/03/2013 Office 2013 Style Changes
                    {
                        DrawPanelSelected(e);
                    }
                      else if( e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2013)
                    {
                         //Don't draw anything
                     }
                }
                else
                {
                    DrawPanelNormal(e);
                }
to
if (e.Panel.Selected && e.Ribbon.OrbStyle != RibbonOrbStyle.Office_2013)
                {
                    if (e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2007 | e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2010) //Michael Spradlin - 05/03/2013 Office 2013 Style Changes
                    {
                        DrawPanelSelected(e);
                    }
                }
                else
                {
                    DrawPanelNormal(e);
                }
Marked as answer by toAtWork on 3/2/2014 at 9:02 AM
Dec 16, 2013 at 8:35 AM
Thanks!
Seemed we missed some part during Office 2013 style integration.
Mar 2, 2014 at 5:03 PM