Python : prop_search not correctly drew in UI #50497

Closed
opened 2017-01-22 12:05:32 +01:00 by Cédric · 8 comments
Member

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
2017-01-22_11-33-46.gif

prop_search.blend

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.

**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 ![2017-01-22_11-33-46.gif](https://archive.blender.org/developer/F438304/2017-01-22_11-33-46.gif) [prop_search.blend](https://archive.blender.org/developer/F438302/prop_search.blend) **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.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @Clarkx

Added subscriber: @Clarkx

Added subscribers: @AleksandrZinovev-2, @mont29

Added subscribers: @AleksandrZinovev-2, @mont29
Aleksandr Zinovev was assigned by Bastien Montagne 2017-01-22 13:00:24 +01:00

@AleksandrZinovev-2 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.

@AleksandrZinovev-2 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.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

This is caused by da026249ab.

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

da026249ab:
layout_bug_new.gif
d5cf90f59f (parent commit):
layout_bug_old.gif
Note the placement of the checkbox of both.

This is caused by da026249ab. There's also a similar alignment issue in UILists (which may be a bit easier to reproduce). da026249ab: ![layout_bug_new.gif](https://archive.blender.org/developer/F438366/layout_bug_new.gif) d5cf90f59f (parent commit): ![layout_bug_old.gif](https://archive.blender.org/developer/F438368/layout_bug_old.gif) Note the placement of the checkbox of both.

This issue was referenced by feb588060a

This issue was referenced by feb588060a6c33c42b3bbf4a5c15283644a342f9

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#50497
No description provided.