Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r--source/blender/src/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index 738fea7db6e..ede18300a8d 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -581,7 +581,7 @@ static void ui_positionblock(uiBlock *block, uiBut *but)
else yof= butrct.ymax - block->maxy+centre;
}
else if(dir1==UI_TOP) {
- yof= butrct.ymax - block->miny-1;
+ yof= butrct.ymax - block->miny;
if(dir2==UI_RIGHT) xof= butrct.xmax - block->maxx;
else xof= butrct.xmin - block->minx;
// changed direction?
@@ -592,7 +592,7 @@ static void ui_positionblock(uiBlock *block, uiBut *but)
}
}
else if(dir1==UI_DOWN) {
- yof= butrct.ymin - block->maxy+1;
+ yof= butrct.ymin - block->maxy;
if(dir2==UI_RIGHT) xof= butrct.xmax - block->maxx;
else xof= butrct.xmin - block->minx;
// changed direction?