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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user