Try to scale frames up if not enough space is used

This commit is contained in:
Nick Mowen 2023-06-08 17:36:17 -06:00
parent c0c3ff212c
commit d4015f0fce

View File

@ -433,9 +433,11 @@ class BirdsEyeFrameManager:
coefficient, coefficient,
) )
if total_height <= canvas_height: if (canvas_height * 0.9) < total_height <= canvas_height:
break break
elif total_height < canvas_height * 0.8:
coefficient += 0.1
else:
coefficient -= 0.1 coefficient -= 0.1
self.camera_layout = layout_candidate self.camera_layout = layout_candidate