Status: New
Owner: ----
Labels: Type-Bug
New issue 7237 by
[hidden email]: Misbehavior of morph's yellow
button menu
http://code.google.com/p/pharo/issues/detail?id=7237Setting a morph's 'wantsYellowButtonMenu: true' or a 'model' wich has a
menu to show doesn't behave as expected due to 3 misplaced lines in
Morph>>addYellowButtonMenuItemsTo: aMenu event: evt
Steps to reproduce:
1.Run workspace
m:= LineMorph new.
m openInWorld.
m wantsYellowButtonMenu:true.
2.Right clic on morph --> nothing happens.
After fixing, an already aveilable menu for lines will appear as in
attachment.
[FIX]
Morph>>addYellowButtonMenuItemsTo: aMenu event: evt
aMenu defaultTarget: self.
"Next 3 lines were moved from below"
aMenu addStayUpItem.
self addCustomMenuItems: aMenu hand: evt hand.
self addModelYellowButtonItemsTo: aMenu event: evt.
"And placed before"
self defaultYellowButtonMenuEnabled ifFalse: [ ^ self ].
Attachments:
MorphMenu.JPG 73.1 KB
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker