Skip to content

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

Description

@KSwordOfHaste

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions