--- panel-plugin/cpu.c.orig 2007-08-17 21:26:02.000000000 +0200 +++ panel-plugin/cpu.c 2007-08-17 23:29:16.000000000 +0200 @@ -693,6 +693,11 @@ GtkWidget *da = base->m_DrawArea; int w, h; + if (xfce_panel_plugin_get_orientation (base->plugin) == + GTK_ORIENTATION_VERTICAL) + if (base->m_Values != base->m_DrawArea->allocation.width+1) + SetHistorySize (base, base->m_DrawArea->allocation.width+1); + w = da->allocation.width; h = da->allocation.height; @@ -901,7 +906,11 @@ base->m_TimeoutID = g_timeout_add (update, (GtkFunction) UpdateCPU, base); UserSetSize (base); - SetHistorySize (base, base->m_Width); + if (xfce_panel_plugin_get_orientation (base->plugin) == + GTK_ORIENTATION_HORIZONTAL) + SetHistorySize (base, base->m_Width); + else + SetHistorySize (base, base->m_DrawArea->allocation.width+1); } void