Unable to decrease width/height of div in quirks mode for IE9
This is a weird issue that I am facing
In short I am unable to decrease width/height of a div in quirks mode for IE9
Longer description I am using a customized (by myself) dijit.Dialog with dojox.resizeHandle widget.
When it shows for the first time, I can resize it without any problem. However once hidden, on being shown it is not possible to decrease its size, only increase it.
On debugging I found that while sizes were correctly applied in Trace Style, however it wasn't rendering in Layout.
Finally got the solution, this "weird" behavior is caused because in "quirks" mode "div" which doesn't have "hasLayout" is not able to shrink
Fix is to force "div" element to have "hasLayout" set to true
I did it by setting "zoom" to "1"