This is a migrated thread and some comments may be shown as answers.

.Animation adds a 50% re sizing error on second open

1 Answer 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 2
Ian asked on 22 Jul 2013, 06:19 PM
I have a Window that opens the first time and closes the first time fine. Works great.

Html.Kendo().Window()
    .Name(windowId)
    .Width(680)
    .Height(430)
    .Title(Model.ChartTitle)
    .Visible(false)
    .Modal(true)
    .Draggable(true)
    .Animation(animation => { animation.Open(open => { open.Fade(FadeDirection.In); }); })

However, the second time the window opens when clicked by a user, the entire window and contents is 50% sized. Images, text everything.

I experimented and found if I remove the .Animation line the Window works as expected each time.

Bug?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 24 Jul 2013, 01:51 PM
Hi Ian,

 
Current behavior is expected as the default closing animation lowers the scale of the Window element and the default opening animation sets it back to normal. In current scenario I would suggest to either change the closing animation to be the same as the opening (Fade effect) or manually set the Window element scale back to normal.

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Ian
Top achievements
Rank 2
Answers by
Vladimir Iliev
Telerik team
Share this question
or