Menu

#247 Layout engine - incorrect handling of sizers

6.8-beta
open
IDE (174)
2
2012-07-13
2005-07-22
Anonymous
No
  1. Create a wxFrame
  2. Add a sizer
  3. Add a notebook
  4. Add a notebook page
  5. Add a sizer - change orientation to vertical
  6. Add two sizers to the previous - change orientation
    to horisontal
  7. Add a button to the top sizer - change width to 300
  8. Add a button to the bottom sizer
  9. Compile and run
  10. Compare compiled Frame with IDE Frame

The IDE Frame will usually have a sizer and button that
is not completely displayed within the frame. Whereas
the compiled app seems to layout correctly.

aitkens@pctmail.net

Discussion

  • Nobody/Anonymous

    Screen shot

     
  • Tony Reina

    Tony Reina - 2011-09-28

    I checked this with 7.4. It appears that changing the width of the button to 300 makes it larger than the default window size. For some reason, the visual designer wasn't auto-expanding to fit the larger component. In my test, the window still doesn't autoexpand, but does flicker as if it is trying to do so. It stops flickering when I expand it manually.

    So the behavior is not ideal, but it's not necessarily a bug. I'll keep the post open to remind me (or others) to look at the auto-expand code for sizers to see if we can't get it to correctly expand the window size when a component is bigger than the sizer.

     

Anonymous
Anonymous

Add attachments
Cancel