diff options
author | Ton Roosendaal <ton@blender.org> | 2013-03-22 16:00:29 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2013-03-22 16:00:29 +0400 |
commit | fbdec130052ad8d2db63b69581771fc96577360d (patch) | |
tree | 12c67b73ea28698c0b1d89f198077b0ee16a41b3 /source/blender/editors/space_text/space_text.c | |
parent | 5fb95d5567863dac395e346595a53b61dfb17746 (diff) |
Bug fix #34405
On opening a text editor for first time, and use search (CTRL+F) the scrollers were not
correct initialized, so the view would jump a bit on redraw.
Diffstat (limited to 'source/blender/editors/space_text/space_text.c')
-rw-r--r-- | source/blender/editors/space_text/space_text.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c index 110e0ab5bc4..58e45bc766f 100644 --- a/source/blender/editors/space_text/space_text.c +++ b/source/blender/editors/space_text/space_text.c @@ -504,10 +504,13 @@ static void text_properties_area_init(wmWindowManager *wm, ARegion *ar) { wmKeyMap *keymap; + ar->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_VERTICAL_HIDE; + ED_region_panels_init(wm, ar); + + /* own keymaps */ keymap = WM_keymap_find(wm->defaultconf, "Text Generic", SPACE_TEXT, 0); WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct); - ED_region_panels_init(wm, ar); } static void text_properties_area_draw(const bContext *C, ARegion *ar) |