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

In Image constructor, requestedWidth is passed instead of requestedHeight #267

Closed
KSwordOfHaste opened this issue Mar 22, 2017 · 0 comments
Closed
Assignees
Labels
bug
Milestone

Comments

@KSwordOfHaste
Copy link

@KSwordOfHaste KSwordOfHaste commented Mar 22, 2017

I noticed that the parameter of three Image constructors may be incorrect.

please check scalafx/scene/image/Image.scala: near line 51, 67 and 73

 def this(inputStream: InputStream, requestedWidth: Double, requestedHeight: Double, preserveRatio: Boolean, smooth: Boolean) =
   this(new jfxsi.Image(inputStream, requestedWidth, requestedWidth, preserveRatio, smooth))
...

In these constructors, requestedWidth is passed instead of requestedHeight as the third argument.

@jpsacha jpsacha added the bug label Jul 31, 2017
@jpsacha jpsacha added this to the 8.0.*-R12 milestone Jul 31, 2017
@jpsacha jpsacha self-assigned this Jul 31, 2017
@jpsacha jpsacha closed this in 7dfa1d3 Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.