Menu

#1 MOOSE TreeViewer toolbar gets cut off when too narrow

2.0
open
None
7
2014-10-24
2014-09-18
No

When you resize the MOOSE TreeViewer, the add/delete child buttons get cut off. It looks like this is partially due to the dropdown box being a fixed width. Ideally, this toolbar should automatically resize instead of forcing the user to increase its width to access these buttons.

1 Attachments

Related

MOOSE Bugs: #1

Discussion

  • Jordan Deyton

    Jordan Deyton - 2014-10-06

    I've taken a look at this briefly. It looks like a similar problem to the one I had with resizing the Properties View so that the TableViewer fills it, it's just trickier because this is part of a ToolBar rather than just nested Composites.

     
  • Jordan Deyton

    Jordan Deyton - 2014-10-09

    I finally figured out a solution for this by adding a listener for resize events to the CTabFolder containing the MOOSETreeCompositeViewer's ToolBar. Unfortunately, there appear to be some limitations with CTabFolder layouts, so I had to do some hacks (like reverting to a previous layout to determine the max available horizontal space).

    It successfully wraps on win32 and cocoa, but for some reason I can't get the CTabFolder to update its layout on gtk.

     
  • Alex McCaskey

    Alex McCaskey - 2014-10-15
    • assigned_to: Jordan Deyton --> Jay Jay Billings
    • Priority: --> 1
     
  • Alex McCaskey

    Alex McCaskey - 2014-10-15
    • Priority: 1 --> 7
     
    • Jordan Deyton

      Jordan Deyton - 2014-10-17

      As far as I can tell it only does this for gtk. I successfully got it to
      wrap those two buttons down on win32 and cocoa. In any case, I'll try to
      come up with a better way to have that dropdown there.

      On Wed, Oct 15, 2014 at 1:44 PM, Alex McCaskey amccaskey@users.sf.net
      wrote:

      • Priority: 1 --> 7

      Status: open
      Milestone: 2.0
      Created: Thu Sep 18, 2014 03:28 PM UTC by Anna Wojtowicz
      Last Updated: Wed Oct 15, 2014 05:39 PM UTC
      Owner: Jay Jay Billings

      When you resize the MOOSE TreeViewer, the add/delete child buttons get cut
      off. It looks like this is partially due to the dropdown box being a fixed
      width. Ideally, this toolbar should automatically resize instead of forcing
      the user to increase its width to access these buttons.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/niceproject/moosebugs/1/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      MOOSE Bugs: #1

  • Jordan Deyton

    Jordan Deyton - 2014-10-24

    I think I figured out how to do this. I might also play around with a button with a menu, too, to see if that works any better.

     
  • Jordan Deyton

    Jordan Deyton - 2014-10-24
    • assigned_to: Jay Jay Billings --> Jordan Deyton
     
  • Jordan Deyton

    Jordan Deyton - 2014-10-24

    It looks like GTK will not support wrapping in ToolBars any time soon:
    https://bugzilla.gnome.org/show_bug.cgi?id=135287

    I've got some code that works for resizing the Combo, but due to some layout refresh issues with the underlying CTabFolder, I had to limit the size of the Combo to fit the phrase "MOOSE app..." However, it will first wrap the ToolBar items and then shrink the Combo depending on how much space is available.

    Since this won't work well on gtk, I'm going to try making a dropdown menu with some checkbox/radio buttons. I'll try to abstract it so I can re-use it elsewhere (i.e., in the Reactor Analyzer).

     

Log in to post a comment.