[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59557] branches/soc-2013-ui_replay/source /blender/editors/screen/area.c: Redo panel is hidden when the containing area is too small.

Vincent Akkermans vincent at ack-err.net
Tue Aug 27 17:43:26 CEST 2013


Revision: 59557
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59557
Author:   ack-err
Date:     2013-08-27 15:43:26 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
Redo panel is hidden when the containing area is too small.

Modified Paths:
--------------
    branches/soc-2013-ui_replay/source/blender/editors/screen/area.c

Modified: branches/soc-2013-ui_replay/source/blender/editors/screen/area.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/editors/screen/area.c	2013-08-27 15:29:14 UTC (rev 59556)
+++ branches/soc-2013-ui_replay/source/blender/editors/screen/area.c	2013-08-27 15:43:26 UTC (rev 59557)
@@ -991,6 +991,9 @@
 		else {
 			ar->winrct.ymax = ar->winrct.ymin + 26;
 		}
+		
+		if (!BLI_rcti_inside_rcti(&mw->winrct, &ar->winrct))
+			ar->flag |= RGN_FLAG_TOO_SMALL;
 	}
 	else if (ar->flag & RGN_FLAG_HIDDEN) {
 		/* hidden is user flag */




More information about the Bf-blender-cvs mailing list