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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-13 22:13:09 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-13 22:14:49 +0300
commitbbc3ee09e44bfaba1ca2d4ab6a6bf2a51976cdae (patch)
treeeb9475ab8c8b4ecb634d395b8b425b6a0318ccab /release/scripts/startup/bl_ui/space_topbar.py
parent2d4a4fa0c1b617a8d68299c6d4501306867d51fa (diff)
Fix T59445: top bar hides everything when there isn't enough space.
Left and right aligned regions get hidden when there is not enough space, and the main center region was empty. Now remove the left region and put its contents in the center region, so that it always remains.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 48922911507..9bf2d48c6ee 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -90,12 +90,10 @@ class TOPBAR_HT_lower_bar(Header):
def draw(self, context):
region = context.region
- if region.alignment == 'LEFT':
- self.draw_left(context)
- elif region.alignment == 'RIGHT':
+ if region.alignment == 'RIGHT':
self.draw_right(context)
else:
- self.draw_center(context)
+ self.draw_left(context)
def draw_left(self, context):
layout = self.layout
@@ -159,9 +157,6 @@ class TOPBAR_HT_lower_bar(Header):
elif context.uv_sculpt_object is not None:
layout.popover_group(space_type='PROPERTIES', region_type='WINDOW', context=".uv_sculpt", category="")
- def draw_center(self, context):
- pass
-
def draw_right(self, context):
layout = self.layout