Menu

#57 Reset of invalid Control bounds

open
nobody
None
5
2008-07-27
2008-07-27
Anonymous
No

When testing the Browser in the current source code download May 14,2008 on a windows build, I ran into a problem with the browser bounds getting incorrect values on close, and the inability to thereafter restore the browser to within the current display bounds. I was finally able to correct it by setting breakpoints in the Control.cpp setBounds and modify the bogus values when the window was restoring settings from the registry.

I've noticed that Eclipse will adjust the window bounds to be something within the current display at startup when the window is completely outside display. I think this would have been a natural recovery for this bug, and would also help for situations where you changing your display configuration for multipler monitors, and you've accidentally left a window open at an offset that is completely out of bounds.

Is this clear?

I don't know what caused the particular problem. I had a pdf file open in the browser, and I closed the browser with the window's x close button. After that, when I tried to reopen, two of the restored coordinants were bogus values ... appeared to be maybe the equivalent of 32 bit -1.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB