Window Control Button visibility resetting on browser resize

I’m seeing an odd little problem - we a single window that is set to maximized on init. We then manually disable all of the control buttons (minimize, maximize, etc) which works great… until we resize the browser window which will cause the “Restore” button to once again show up.

I’ve tried catching the onResizeFinish even both at a global level and on the window object but neither wanted to fire so I can’t just re-hide the button. For now I’m disabling the button so that even if it’s displayed it can’t be used.

Is there another event I can catch for this or a better way or handling removing those controls? We want the window to resize with the browser so denyResize() is out of the question.

We have reproduced the problem. It will be fixed in the next version that is going to be released. If you need a solution ASAP, try the following:

win.attachEvent(“onMinimize”,function(){
window.setTimeout(function(){
win.button(“minmax2”).hide();
},1);
});

Thanks for the update.

That code will work just fine for now.