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:
authorTon Roosendaal <ton@blender.org>2007-11-15 22:02:31 +0300
committerTon Roosendaal <ton@blender.org>2007-11-15 22:02:31 +0300
commit6dbe7453969fd2bcb64df8ed85b3b211c627fc0e (patch)
tree2e4f7921164e3280a1e59d75bef1a848284e4281 /source/blender/src/interface_panel.c
parentca9db6ef25fb327629556f72534d472d2e8ac832 (diff)
Bugfix #7552
Panels with different width or height, should give a re-align call when tabbed and tabs switch
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r--source/blender/src/interface_panel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c
index bafc544daa7..de7f53c2af7 100644
--- a/source/blender/src/interface_panel.c
+++ b/source/blender/src/interface_panel.c
@@ -1805,6 +1805,13 @@ static void panel_clicked_tabs(uiBlock *block, int mousex)
}
addqueue(curarea->win, REDRAW, 1);
+
+ /* panels now differ size.. */
+ if(curarea->spacetype==SPACE_BUTS) {
+ SpaceButs *sbuts= curarea->spacedata.first;
+ if(sbuts->align)
+ uiAlignPanelStep(curarea, 1.0);
+ }
}
}