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:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_time.py')
-rw-r--r--release/scripts/startup/bl_ui/space_time.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py
index 47c8381001e..41a1f60c953 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -87,10 +87,8 @@ class TIME_MT_editor_menus(Menu):
bl_label = ""
def draw(self, context):
- self.draw_menus(self.layout, context, horizontal=False)
-
- @staticmethod
- def draw_menus(layout, context, horizontal=True):
+ layout = self.layout
+ horizontal = layout.direction == 'HORIZONTAL'
if horizontal:
row = layout.row()
sub = row.row(align=True)