desktop - resize window with useChrome = false

You must Login before you can answer or comment on any questions.

For desktop app, and not using Chrome, so I use my own layout as a window.

How can I resize my window? I'm already able to make it smaller, but I can't find a way to make my window bigger.

This is because I use a mouse listener to resize my window, but ofcourse this listener isn't working when I move out of the window.

Any ideas? THANKS

2 Answers

Accepted Answer

If you can post your actual code, it might be easier to help.

I created a small test application and it seems to work.

You can download it here, please let me know if this works for you or if there are issues.

listening to "$(document)" did the trick ;-)

thanks a lot

PS: what is the "event.stopPropagation();" good for ? I never quite understood what this does...thanks 4 your help...appreciated

— answered 2 years ago by Wesley Mostien
answer permalink
1 Comment
  • Glad to help. You can mark my answer as "best" to show your appreciation. ;-)

    event.stopPropagation(); stops the event from triggering listeners on other elements it would bubble to. In the case of my sample app, I have mousedown listener on document to move the window around and one on the resizer div to resize the window. If I hold the mouse button down on the resizer div, its mousedown event is fired first. Afterwards, the document would receive the mousedown and its own event would fire. To prevent that I stop the event in the listener to the div's mousedown.

    — commented 2 years ago by Andreas Hofmann

Your Answer

Think you can help? Login to answer this question!