diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-13 22:13:09 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-13 22:14:49 +0300 |
commit | bbc3ee09e44bfaba1ca2d4ab6a6bf2a51976cdae (patch) | |
tree | eb9475ab8c8b4ecb634d395b8b425b6a0318ccab /release | |
parent | 2d4a4fa0c1b617a8d68299c6d4501306867d51fa (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')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 9 |
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 |