Page MenuHome

Splash screen doesn't reposition vertically
Closed, ResolvedPublic


System Information
Operating system: All

Blender Version
Broken: git master

Short description of error
When resizing the window right after startup, the Splash screen stays in the center horizontally but not vertically.

Exact steps for others to reproduce the error

Open Blender and resize the window.

This was pointed out by HooglyBoogly in

Event Timeline

Luis de Bethencourt Guimera (luisbg) triaged this task as Confirmed, Low priority.Aug 15 2019, 3:59 AM

Proposed fix D5508

This could also be fixed by adding a check if it is a splash screen in the if case above if (handle->refresh && handle->prev_block_rect.ymax > block->rect.ymax) {. But chaining 3 conditions felt less clean than just avoiding setting the handle->prev_block_rect and have it be the initial 0 which will mean that block above doesn't execute and hold the vertical position of the splash screen.

If chaining this in the existing if conditional is more consistent with Blender's style. Let me know and I will update.

Thanks! It was fun to investigate this one.

This is how it looks after I scale down the window vertically: