#59 3.10.0 view in panel problem

closed-fixed
nobody
None
5
2005-02-11
2005-02-11
lmacdougall
No

Now that the source browser shares a panel with 'view
in panel', view in panel won't load if the
sourcebrowser is already open. It works fine in the
right panel, just not the left. If you open a new
document, or toggle the SB, then it opens properly
(sometimes). May have something to do with calling
OnSize at the right time.

Discussion

    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=796750

    This is fixed for 3.10.1.

    The problem, partly, is that (on windows, linux behaves
    itself :),
    the sizing code jumps the gun, and so the panel has not yet
    been added.

    Of course, in mainpanel.OnSize, the individual pages for the
    notebook are*not* sized on windows. (They are on linux).
    So calling OnSize after adding the panel fixes this on
    linux, but not on windows.

    I switched to using .ShowPanel(Position, Index), and then
    manually call the sizing code for the target notebook page.

    This is clearer than calling OnSize, and has the added benefit
    of only targeting the specific notebook page.