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

Removed setVisible (fields, inputs) from the Public API #2406

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

BeksOmega
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#2381

Proposed Changes

Removes setVisible from the public API. This change applies to inputs and fields but not from icons (comments, mutators, warnings, etc), scrollbars, flyouts, or workspaces.

In doing so this removes a setVisible call from the procedures_defnoreturn block.

Also cleans up setVisible within fields. Some of the setVisible logic was leaking into the render() function because of the old way of re-rendering fields (setting their width to zero) it has now been moved back to the setVisible function.

Reason for Changes

Set visible should not be used to hide fields or inputs, it should only be used when collapsing a block.

Test Coverage

Tested collapsing blocks:
SetVisible_Collapsing

Tested the procedure block mutator:
On Develop:
SetVisible_Procedure_Develop

On This Branch:
SetVisible_Procedure_Branch

Tested on:

  • Desktop Chrome
  • Desktop Firefox
  • Windows Internet Explorer 11
  • Windows Edge

Additional Information

N/A

@RoboErikG RoboErikG merged commit 5c4c816 into google:develop Apr 24, 2019
@BeksOmega BeksOmega deleted the feature/SetVisible branch April 24, 2019 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants