-
Notifications
You must be signed in to change notification settings - Fork 76
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
Rotate is not handled correctly #47
Comments
Code is committed in the test sources |
Copy, Tom. Swamped atm but it’s in the queue of things to check. :)
|
Tried it and it looks funny. Fortunately I think that rotated components are rare. I'm not going to do anything about this atm. :) |
What I see happening is that the rotation is not taking into account; when the node is rotated 90 degrees, it is stretched on its original height vector when the cell it occupies is growing in Y. This makes the node seem to grow X. So I suspect all that needs to be done is cos / sin the rotation into the X / Y. Maybe I have the time to take a peek. |
Rotations like that are done with a transform. The button won't report correct layout bounds when this happens, unless wrapped in a Group. |
Comment out the setRotate and things are peachy, leaving it in not so much. Resizing also works in the wrong direction. Try 45 degrees or adding it to the regular layout. We need to compensate for / undo the rotation somehow.
`
package org.tbee.javafx.scene.layout.trial;
`
The text was updated successfully, but these errors were encountered: