diff --git a/cmd/xfe/XfeWidgets/XfeToolBar/ToolBox.c b/cmd/xfe/XfeWidgets/XfeToolBar/ToolBox.c index 6995801b0199..86322e215a7d 100644 --- a/cmd/xfe/XfeWidgets/XfeToolBar/ToolBox.c +++ b/cmd/xfe/XfeWidgets/XfeToolBar/ToolBox.c @@ -2483,6 +2483,13 @@ XfeToolBoxItemSetOpen(Widget w,Widget item,Boolean open) #endif XtVaSetValues(item,XmNopen,open,NULL); + + /* + * This is a temprary hack to fix the "off by one" toolbar closed + * problem that occurs when all toolbox items are closed. + */ + LayoutComponents(w); + LayoutDynamicChildren(w); } /*----------------------------------------------------------------------*/ /* extern */ Boolean