NLA viewport jumps upward when track search input is focused #97530
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#97530
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: NVIDIA GTX 1070
Blender Version
Broken: 3.1
Worked: Unknown
Short description of error
The NLA viewport jumps upward when the track search input box is focused by clicking on it.
Exact steps for others to reproduce the error
Added subscriber: @cmbasnett
Added subscriber: @BClark
Yes little things like that are tiny but cause artists to be nervous that something isn't right, and if something simple like a search bar does this, what else is wrong.. feelings start to appear when the tools are being used!!
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @PratikPB2123
Did anyone have time to take this on, been making me crazy all week in the NLA
Added subscriber: @nrupsis
This behavior is consistent with the graph editor, and action editor too. All of which call the
ED_time_scrub_channel_search_draw
method. Still unsure why it's happening...I believe I figured out the cause of this, though I'm not sure how best to fix it.
Basically, the search bar is being anchored to the top, but it is still just part of the channel region (as evidence by the fact you can middle-mouse click the search bar and move the channel view up and down). This is technically no different than, say, a text box on a horizontal toolbar.
There is logic that says when text edit buttons are brought into focus that the view must ensure that the text box is within the bounds of the view, plus padding.
Therefore, when the text box is focused, the view jumps up by the number of padding pixels (around 10 on default settings).
Here is the stack trace of where the bug is occurring.
Edit: Come to think of it, I think the only good way to fix this would be to reconfigure how the layout of this is done to begin with. The search bar should not be part of the channel region. This would probably also eliminate a lot of jank code that has to account for the space permanently occupied by the search bar.
Added subscriber: @dr.sybren
Without knowing much about the UI code, that looks like the right way to go for me, indeed.
I've posted a question on the devtalk forums about how best to fix this: https://devtalk.blender.org/t/fixing-artificial-header-ui-in-animation-editors/26753
Following up here now that it is in the new system