From 05cf7863c346dd28af812457209c8fcc5154d6fa Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 30 Apr 2018 15:11:43 +0200 Subject: Fix: UI layout for "Pause" button on timeline header was broken (leaving a gap) A recent change in the UI layout code probably broke how the scale_x for layouts was getting handled. This was leaving a large gap (and causing layouts to pop) when trying to scrub the timeline. This commit fixes this with a manually-found value that largely seems to get rid of the popping problem. There's still a little jumping (1-2 px) but it's less distracting now. --- release/scripts/startup/bl_ui/space_time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index ef4f7df76fa..a1f0f5a7cc8 100644 --- a/release/scripts/startup/bl_ui/space_time.py +++ b/release/scripts/startup/bl_ui/space_time.py @@ -65,14 +65,14 @@ class TIME_HT_editor_buttons(Header): # since JACK transport doesn't support reversed playback if scene.sync_mode == 'AUDIO_SYNC' and context.user_preferences.system.audio_device == 'JACK': sub = row.row(align=True) - sub.scale_x = 2.0 + sub.scale_x = 1.4 sub.operator("screen.animation_play", text="", icon='PLAY') else: row.operator("screen.animation_play", text="", icon='PLAY_REVERSE').reverse = True row.operator("screen.animation_play", text="", icon='PLAY') else: sub = row.row(align=True) - sub.scale_x = 2.0 + sub.scale_x = 1.4 sub.operator("screen.animation_play", text="", icon='PAUSE') row.operator("screen.keyframe_jump", text="", icon='NEXT_KEYFRAME').next = True row.operator("screen.frame_jump", text="", icon='FF').end = True -- cgit v1.2.3