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,10 +433,12 @@ class BirdsEyeFrameManager:
coefficient,
)
if total_height <= canvas_height:
if (canvas_height * 0.9) < total_height <= canvas_height:
break
coefficient -= 0.1
elif total_height < canvas_height * 0.8:
coefficient += 0.1
else:
coefficient -= 0.1
self.camera_layout = layout_candidate