Skip to content
New issue

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

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

Already on GitHub? # to your account

SplitPane not passing correct orientation JSplitPane #98

Closed
Sciss opened this issue Apr 10, 2019 · 1 comment
Closed

SplitPane not passing correct orientation JSplitPane #98

Sciss opened this issue Apr 10, 2019 · 1 comment

Comments

@Sciss
Copy link
Contributor

Sciss commented Apr 10, 2019

From scala/bug#7738

SplitPane is passing java.awt.Adjustable.HORIZONTAL and etc to JSplitPane, but the latter expects its own constants like JSplitPane.HORIZONTAL_SPLIT. In fact, these values aren't the same.

@Sciss
Copy link
Contributor Author

Sciss commented Apr 10, 2019

I agree that this is wrong, but unfortunately we have always had this behaviour now. Arguably what is "horizontal" and what is "vertical" subject to interpretation, especially if it's 'vertical' and not 'vertical split'. I suggest thus to simply add a note to the documentation making this perhaps less intuitive difference more clear.

Sciss added a commit to Sciss/scala-swing that referenced this issue Apr 10, 2019
@Sciss Sciss closed this as completed Apr 11, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant