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>2012-10-25 18:49:50 +0400
committerTon Roosendaal <ton@blender.org>2012-10-25 18:49:50 +0400
commitd34f2410a16c85a1b6a35a72febdec4cd21d2157 (patch)
tree8a6cc73a53eacc30c9ee3bdf5acb9963dee8418c /source/blender/editors/screen
parent3b3ad5bba6d6a4355e801f125e26382f98bf7237 (diff)
Bugfix #24343
Ancient 2.5 UI issue: The button views in Property Editor have an internal storage, to ensure the view on the buttons stays same when you switch contextes or select objects. Bug was that - in case buttons were all scrolled invisible - sometimes no slider was drawn to indicate that. Discussion on whether this is a good feature or not: the only improvement would be to store such settings even per object... but that's a feature creep I think.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/area.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index c0f8da89306..586f734129f 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1663,11 +1663,9 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *
v2d->scroll |= V2D_SCROLL_HORIZONTAL_HIDE;
v2d->scroll &= ~V2D_SCROLL_VERTICAL_HIDE;
- /* don't jump back when panels close or hide */
- if (!newcontext)
- y = MAX2(-y, -v2d->cur.ymin);
- else
- y = -y;
+ /* ensure tot is set correctly, to keep views on bottons, with sliders */
+ y = MAX2(-y, -v2d->cur.ymin);
+
}
else {
/* for now, allow scrolling in both directions (since layouts are optimized for vertical,