Commit 40914363 authored by Benjamin Otte's avatar Benjamin Otte

notebook: Respect padding when computing tabs for left/right

This mirrors the top/bottom code
parent 9a4aec14
......@@ -6177,11 +6177,16 @@ gtk_notebook_page_allocate (GtkNotebook *notebook,
*/
if (page != priv->cur_page && tab_overlap > tab_curvature)
{
child_allocation.height -= tab_overlap - tab_curvature;
if (gtk_notebook_page_num (notebook, page->child) >
gtk_notebook_page_num (notebook, priv->cur_page->child))
child_allocation.y += tab_overlap - tab_curvature;
{
child_allocation.y += tab_overlap - tab_curvature - tab_padding.top;
child_allocation.height -= tab_overlap - tab_curvature - tab_padding.top;
}
else
{
child_allocation.height -= tab_overlap - tab_curvature - tab_padding.bottom;
}
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment