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:
authorJoshua Leung <aligorith@gmail.com>2010-03-05 04:18:12 +0300
committerJoshua Leung <aligorith@gmail.com>2010-03-05 04:18:12 +0300
commit75bafb1fcc61ee52e37f2bad72816a1cd198e099 (patch)
treeae7bcebce2bf89fbdd4e2810e3fc433f91138301 /source/blender/editors/space_buttons
parent4b744ad9cb4bdd36754816127202fe500510ab7f (diff)
Bugfix #21215: Panning Properties header shows unnecessary space.
There was an additional 'magic number' offset for the header width, from the days when there was the frame number and subtabs in the header. -- Removed an obsolete and commented out line.
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/buttons_header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_header.c b/source/blender/editors/space_buttons/buttons_header.c
index 3e479c63f20..18f266f85c6 100644
--- a/source/blender/editors/space_buttons/buttons_header.c
+++ b/source/blender/editors/space_buttons/buttons_header.c
@@ -138,7 +138,7 @@ void buttons_header_buttons(const bContext *C, ARegion *ar)
uiBlockEndAlign(block);
/* always as last */
- UI_view2d_totRect_set(&ar->v2d, xco+XIC+80, ar->v2d.tot.ymax-ar->v2d.tot.ymin);
+ UI_view2d_totRect_set(&ar->v2d, xco+(XIC/2), ar->v2d.tot.ymax-ar->v2d.tot.ymin);
uiEndBlock(C, block);
uiDrawBlock(C, block);