Handle scroll in NSMenu with custom NSMenuItem view

mall1312mall1312 Member ✭✭
edited October 24 in Xamarin.Mac

Working on Xamarin.Mac
I have a NSMenu showing NSMenuItems with custom NSView when scroll begins, it show overflowed items on top or bottom of the menu.
NSMenu keep the text of items at top or bottom when is scrolling.

I am using the original class of NSMenu only setting NSMenuItems views with a NSTextField.

Best Answer

  • mall1312mall1312 ✭✭
    Accepted Answer

    Using NSTextView instead of NSTextField fixed my problem.
    I tried with other controls, only NSTextField had this issue.

Answers

  • mall1312mall1312 Member ✭✭
    Accepted Answer

    Using NSTextView instead of NSTextField fixed my problem.
    I tried with other controls, only NSTextField had this issue.

Sign In or Register to comment.