Skip to content

Instantly share code, notes, and snippets.

Created September 1, 2015 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0badad57816042b48b74 to your computer and use it in GitHub Desktop.
Save anonymous/0badad57816042b48b74 to your computer and use it in GitHub Desktop.
public ResizeHeightTranslation( Duration duration, Region region, double newHeight ) {
setCycleDuration(duration);
this.region = region;
this.newHeight = newHeight;
this.startHeight = region.getHeight();
this.heightDiff = newHeight - startHeight;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment