# DocumentWindow's resize on MaximiseButton

**URL:** <https://forum.juce.com/t/documentwindows-resize-on-maximisebutton/7707>\
**Category:** Windows\
**Created:** [November 15, 2011, 5:38am UTC](https://forum.juce.com/t/documentwindows-resize-on-maximisebutton/7707 "2011-11-15T05:38:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![acn](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@acn](https://forum.juce.com/u/acn)\
**Post date:** [November 15, 2011, 5:38am UTC](https://forum.juce.com/t/documentwindows-resize-on-maximisebutton/7707/1 "2011-11-15T05:38:19Z")

</div>

Hello All,

In window platform An application’s mainWindow is extended with DocumentWindow as usual in general juce type development.I have one resize issue , and i am curious any one facing same issue ? :?

Following configuration are set for DocumentWindow  
DocumentWindow::setResizable(true, true);  
DocumentWindow::setResizeLimits(800, 600, 8192, 8192);  
DocumentWindow::setFullScreen(true);

Now when pressing Maximize button for the first time, On maximiseButtonPressed() event my whole window is set to small size and it is 100x100, Now when i resize window with right bottom, it directly set to 800x600 that is minimum size configured for DocumentWindow in my case.

Currently i am using setSize(1024,768) 😉 when maximizeButtonPressed. But still in this case, first it set to very small size like 100x100 and after that flickering it is set to (1024,768).  
What could be possible here ? :idea: Any idea guys, had any one faced something like that before ?
