Issue 7237 in pharo: Misbehavior of morph's yellow button menu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Issue 7237 in pharo: Misbehavior of morph's yellow button menu

pharo
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=7237

Setting 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