[Bf-blender-cvs] [882e675] UI-experiments: Fix offset tabs due to changes in UI-graphical-redesign branch

Julian Eisel noreply at git.blender.org
Tue Jun 2 18:21:43 CEST 2015


Commit: 882e675a82cb3bad6a020ba7f6ebccfcf42acfb3
Author: Julian Eisel
Date:   Tue Jun 2 18:21:20 2015 +0200
Branches: UI-experiments
https://developer.blender.org/rB882e675a82cb3bad6a020ba7f6ebccfcf42acfb3

Fix offset tabs due to changes in UI-graphical-redesign branch

===================================================================

M	source/blender/editors/interface/interface_panel.c

===================================================================

diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 175799d..a4bf03c 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -943,7 +943,8 @@ static bool uiAlignPanelStep(ScrArea *sa, ARegion *ar, const float fac, const bo
 	ps = panelsort;
 	ps->pa->ofsx = UI_PANEL_MARGIN;
 	/* offset first panel, but not for properties editor, there is already some space making this look odd */
-	ps->pa->ofsy = -(get_panel_size_y(ps->pa) + (sa->spacetype == SPACE_BUTS ? 0 : UI_PANEL_MARGIN));
+	ps->pa->ofsy = -(get_panel_size_y(ps->pa) + ((sa->spacetype == SPACE_BUTS || ar->regiontype == RGN_TYPE_TABS) ?
+	                                             0 : UI_PANEL_MARGIN));
 
 	if (has_category_tabs) {
 		if (align == BUT_VERTICAL) {




More information about the Bf-blender-cvs mailing list