diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-29 04:57:15 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-29 04:57:15 +0300 |
commit | 30c317de70bdb5348adecf9f1d8518a51aff6c86 (patch) | |
tree | e296a3e28609fbffaf5437032432fc6c3b056250 /source/blender/editors/screen | |
parent | b645e56ad57e586410ae56d2287508f0121c10c0 (diff) |
Fix [#20447] Minor infobar bugs
Limited headers to normal header height until multi-line headers are properly implemented.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 7f6f1c34760..5c66c9a32e0 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1374,6 +1374,7 @@ static int region_scale_invoke(bContext *C, wmOperator *op, wmEvent *event) if(az->ar) { RegionMoveData *rmd= MEM_callocN(sizeof(RegionMoveData), "RegionMoveData"); + int maxsize; op->customdata= rmd; @@ -1397,7 +1398,14 @@ static int region_scale_invoke(bContext *C, wmOperator *op, wmEvent *event) } else { rmd->origval= rmd->ar->sizey; } - CLAMP(rmd->maxsize, 0, 1000); + + /* limit headers to standard height for now */ + if (rmd->ar->regiontype == RGN_TYPE_HEADER) + maxsize = rmd->ar->type->prefsizey; + else + maxsize = 1000; + + CLAMP(rmd->maxsize, 0, maxsize); /* add temp handler */ WM_event_add_modal_handler(C, op); |