Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed output add button could become invisible #6660

Merged
merged 4 commits into from
Jan 4, 2022

Conversation

julienamsellem
Copy link
Contributor

Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1389927/

In a VFX subgraph, the output add button (+) in the blackboard can become invisible when the output category has a visible scrollbar.

[Before]
VFX_UX_SubgraphOutputBoard

[After]
UPLQRsGtFl


Testing status

  • Resize the blackboard to its minimum size
  • Resize the blackboard so that an horizontal scrollbar is visible and move the scrollbar

Comments to reviewers

The original issue is rather in the scope of GraphView because the same issue happens in ShaderGraph.
But since there's no more development on GraphView I fixed it specifically for VFX (the fix is a hack ...)

This can happen when the scrollview is too small and the horizontal scrollbar is not at the right most position
@github-actions
Copy link

Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed.
Link to Yamato: https://unity-ci.cds.internal.unity3d.com/project/902/
Search for your PR branch using the search bar at the top, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

VFX
/jobDefinition/.yamato%252Fall-vfx.yml%2523PR_VFX_trunk

Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure.

Copy link
Contributor

@MarieGuff MarieGuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and approved on 2021.2.0a15 (37767e16dc73)

@VitaVFX VitaVFX requested review from VitaVFX and removed request for a team December 23, 2021 20:20
Copy link

@VitaVFX VitaVFX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approving as the fix is cosmetic and been already verified by Julien and Marie. Thanks for the fix!

@julienamsellem julienamsellem marked this pull request as ready for review January 3, 2022 12:31
Copy link
Contributor

@PaulDemeulenaere PaulDemeulenaere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, this is a workaround from the GraphView behavior, offsetting the button position according to the scroller cursor. Only cosmetic, the risk is pretty low.
LGTM. Thanks for the fix.

@julienamsellem julienamsellem merged commit 1aaf279 into master Jan 4, 2022
@julienamsellem julienamsellem deleted the vfx/fix/1389927-add-output-button-hidden branch January 4, 2022 12:59
julienf-unity pushed a commit that referenced this pull request Jan 13, 2022
* [Hack] Fixed output add button could become invisible

This can happen when the scrollview is too small and the horizontal scrollbar is not at the right most position

* Fixed an issue when there's no output category in the blackboard

* Fixed formatting issue

* Updated changelog
julienf-unity pushed a commit that referenced this pull request Jan 13, 2022
* [Hack] Fixed output add button could become invisible

This can happen when the scrollview is too small and the horizontal scrollbar is not at the right most position

* Fixed an issue when there's no output category in the blackboard

* Fixed formatting issue

* Updated changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants