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
How to replace view with another of different size #622
Comments
There is no support for gradually increasing the window size, but you could let sizeToScene be false and resize in the onDock callback of RegistrationWizard. |
Thank you for fast response :) close()
find<RegistrationWizard>().openWindow() When I run this inside the |
I just discovered a bug in What you need to do to avoid this is simply pass null to the owner parameter. Here is a complete application showcasing this: class MyApp : App(FirstView::class)
class FirstView : View("First View") {
override val root = button("Go to View 2") {
action {
find<SecondView>().openModal(owner = null)
currentStage?.close()
}
}
}
class SecondView : View("Second View") {
override val root = label(title)
} After 1.7.15 you can replace |
Ok, thank you! |
You're welcome, and thanks for reporting. Nice to have this bug squashed :) |
I have a
LoginForm
view with some fields and link "Sign up". When it pressed, I need to replace this view with another,RegistrationWizard
view, which is about 2 times larger thenLoginForm
.When I'm using
replaceWith()
function with transition effect, the window becomes larger first(without any animation, and this is an issue I want to address), and only after this begins the transition effect:Is there any way to make this transition smoothly?
The text was updated successfully, but these errors were encountered: