Menu

#110 Splitter position after wxAUI rearrangement

open-accepted
None
5
2009-03-07
2009-02-23
Salvo Isaja
No

Greetings,
in a context similar to that of bug 2619204, the splitter of the propgrid is uncomfortably put about 30px from the left margin every time the AUI pane containing the propgrid is docked (including automatically at startup). Moreover, trying to drag the splitter in this case does not always not properly (can't reproduce it consistently, sorry): after a few pixels it "hangs", needing to release the splitter and drag it again.
Thanks,
Salvo

Discussion

  • Jaakko Salli

    Jaakko Salli - 2009-02-26
    • assigned_to: nobody --> jmsalli
     
  • Salvo Isaja

    Salvo Isaja - 2009-02-27

    Please see bug 2619204 for a minimal sample that shows the problem. Look at the center pane, the splitter position of the property grid. The same happens (but is less visible due to smaller pane size) if you place "sw" on side panes.
    It seems this is somewhat related to wxSplitterWindow, as was not able to reproduce the problem in the minimal sample until I added "sw".
    Thanks,
    Salvo

     
  • Jaakko Salli

    Jaakko Salli - 2009-03-07

    I could not reproduce splitter "rearrangement" on pane dock, but I do see the bad initial splitter position of pg2.

    This is a problem in PG's "smart" initial splitter positioning system. In this particular case, pg2 pane is somehow made initially very small, causing splitter to go into the position as seen. After that point PG thinks all the following resizes are made by user - which is wrong as Splitter Window / AUI manager obviously enlarges the grid.

    I guess for you a temporary workaround would be to check and set splitter positions at idle time. At my end I guess it is once more a time to take look at this particular convoluted piece of code in my component (I've fixed and rewritten it already many times ;).

    Thanks,
    Jaakko

     
  • Jaakko Salli

    Jaakko Salli - 2009-03-07
    • status: open --> open-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB