Bugfix: Fix window size being too thin

This commit is contained in:
Joel Holdsworth 2009-04-16 18:33:27 +01:00
parent b6263971cf
commit 647ea9797e

View file

@ -229,13 +229,14 @@ PanelBar::on_size_allocate(Gtk::Allocation& allocation)
if(get_direction() != TEXT_DIR_RTL)
{
window->move_resize(allocation.get_x(), allocation.get_y(),
total_width, allocation.get_height());
total_width + border_width * 2, allocation.get_height());
}
else
{
window->move_resize(
allocation.get_x() + allocation.get_width() - total_width,
allocation.get_y(), total_width, allocation.get_height());
allocation.get_y(),
total_width + border_width * 2, allocation.get_height());
}
}
}