Adding scrollbar default to Python console and Python Info log.
authorTon Roosendaal <ton@blender.org>
Fri, 12 Apr 2013 12:30:05 +0000 (12:30 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 12 Apr 2013 12:30:05 +0000 (12:30 +0000)
source/blender/editors/space_console/space_console.c
source/blender/editors/space_info/space_info.c

index 4243ae4e2df2aaec13da025c1a606092388299b2..ace39f8d669d341c663118c063b13fe5bca3150f 100644 (file)
@@ -138,6 +138,9 @@ static void console_main_area_init(wmWindowManager *wm, ARegion *ar)
 
        const float prev_y_min = ar->v2d.cur.ymin; /* so re-sizing keeps the cursor visible */
 
+       /* force it on init, for old files, until it becomes config */
+       ar->v2d.scroll = (V2D_SCROLL_RIGHT);
+
        UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_CUSTOM, ar->winx, ar->winy);
 
        /* always keep the bottom part of the view aligned, less annoying */
index a3eb7c0687605aa347c3c549ae2ade505e9a0b34..1f59eedd81963db2a08112febb33ebbfdaf21960 100644 (file)
@@ -129,6 +129,9 @@ static void info_main_area_init(wmWindowManager *wm, ARegion *ar)
 {
        wmKeyMap *keymap;
 
+       /* force it on init, for old files, until it becomes config */
+       ar->v2d.scroll = (V2D_SCROLL_RIGHT);
+       
        UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_CUSTOM, ar->winx, ar->winy);
 
        /* own keymap */