Page MenuHome

Python : prop_search not correctly drew in UI
Closed, ResolvedPublic

Description

System Information
Win 7
I7-5820K
GTX780 ti (368.69)

Blender Version
Broken: 2.78 b76dbf5

Short description of error
The length of a row.prop_search() in python seems to be fixed and act strangely in UI if we add an icon at the end with the next row.
This is not happening if we use a col.prop_search() : see image .gif

Exact steps for others to reproduce the error
Open the .blend file, run the script and look for "Hello World Panel" in the properties of the object.
Expand and reduce the panel to see the problem (like in gif image).

Sorry if it's not a bug and thanks for your work.

Event Timeline

Bastien Montagne (mont29) lowered the priority of this task from 90 to 50.

@Aleksandr Zinovev (raa) Think one of your changes (probably the 'fixed layout' one) caused this (also note that the 'icon only' button now shrink much more when layout become narrow, compared to 2.78, and lock icon on the side of the slider tends to disappear too). Mind checking? thanks.

This is caused by rBda026249abbe058.

There's also a similar alignment issue in UILists (which may be a bit easier to reproduce).

rBda026249abbe0:


rBd5cf90f59f7f416 (parent commit):

Note the placement of the checkbox of both.