NSMatrix used as menu item's view appears wrong

  • I have a popup whose menu contains 1 item that uses a view, followed by a bunch of hidden menu items. The first time I pop up the menu, it looks correct. Every time after that, the view is scrolled way off the top with only a tiny bit still visible. Screenshots at:

    https://www.dropbox.com/s/ggzuq19o1ziy8av/menu-item-view-wrong.png

    Obviously, the top part is wrong and the top part is how it's supposed to look. I can flick my scrollwheel/trackpad and it will correct the placement of the view within the menu item.

    The view set on the menu item is an NSMatrix containing NSButtonCells. No, this is not the only time I see this problem. Another popup has a menu item whose view is an NSBrowser, and it too will display off the top of the menu item just like the example.

    Any ideas?

    --
    Steve Mills
    office: 952-818-3871
    home: 952-401-6255
    cell: 612-803-6157
  • On 28.05.2013, at 23:50, Steve Mills <smills...> wrote:
    > I have a popup whose menu contains 1 item that uses a view, followed by a bunch of hidden menu items. The first time I pop up the menu, it looks correct. Every time after that, the view is scrolled way off the top with only a tiny bit still visible. Screenshots at:

    Popup buttons are really intended to be used for selecting from various options, each of which is a menu item. As such, they select whatever item was last selected, and try to scroll it into view.

    My guess is this is what's happening in your case: It "selects" an item number beyond your NSMatrix, and scrolls it into view, thus scrolling your matrix off-screen. Could that be it? I admit I would expect a little "continuation" arrow at the bottom of your menu in that case, though.

    Cheers,
    -- Uli Kusterer
    "The Witnesses of TeachText are everywhere..."
    http://www.lookandfeelcast.com
  • On May 28, 2013, at 18:08:55, Uli Kusterer <witness.of.teachtext...> wrote:

    > My guess is this is what's happening in your case: It "selects" an item number beyond your NSMatrix, and scrolls it into view, thus scrolling your matrix off-screen. Could that be it? I admit I would expect a little "continuation" arrow at the bottom of your menu in that case, though.

    Good guess. That was it. Thanks! I'll report the bug too, since it shouldn't do that when the selected item is hidden, especially if it does it wrong.

    --
    Steve Mills
    office: 952-818-3871
    home: 952-401-6255
    cell: 612-803-6157
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today