PDA

View Full Version : Window drag



sravanithalapanti
18 Feb 2020, 10:13 PM
Hi Guys,
recently I observed one issue for windows dragging when it is minimized and then restored.
I'm attaching a sample fiddle where we can see the issue.


https://fiddle.sencha.com/#view/editor&fiddle/33ga
Steps:


Click on button
minimize it(Draggable icon will come)
Now restore it(draggable will be not visible )


If anybody knows why this is happening, please share the solution.

praveensaini23
21 Feb 2020, 3:59 AM
Hi,

As far as I can see is you are maximize function of window class and you handled maximize event as well where you are trying to set window size. So the default behavior of window's maximize scenario is - if window is in maximize state, you can not drag that. So possibly that might be the reason why its no more draggable once you called maximize function of it.
Follow the below fiddle -
https://fiddle.sencha.com/#view/editor&fiddle/33t8

Its same just 2 lines different. The popup which is opened by clicking on first click button, rather than calling maximize function of grid class I am firing 'showwin' event on window and also where you handled maximize event at the top, i rename that to handle our custom event - 'showwin'. Now first popup seems working fine.

sravanithalapanti
23 Feb 2020, 10:51 PM
Hello Praveen,
Thank you for the response.It will solve my problem.