You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/11/30 18:22:00 UTC

[GitHub] [royale-asjs] sylvainfritsch opened a new issue #968: Problems with mx:Menu position on PopupButton click.

sylvainfritsch opened a new issue #968:
URL: https://github.com/apache/royale-asjs/issues/968


   Hello,
   
   I'm using the mx emulation to port an existing application to Royale JS.
   I'm using mx.controls.PopUpButton to display a menu on click.
   The position at which the mx.controls.Menu appear change based on the menu widths.
   The larger is the menu is the offset. It's as if the offset is equal to the menu's width.
   
   As examples, here the button clicked is "PHARMACIE"
   ![large offset](https://user-images.githubusercontent.com/74671462/100647303-99ba1f00-333f-11eb-9f62-de68e0a0920a.JPG)
   
   
   And here it is "SOIN"
   ![small offsetJPG](https://user-images.githubusercontent.com/74671462/100647307-9aeb4c00-333f-11eb-8719-959ff6bbff4c.JPG)
   
   I haven't been able to identify the problem yet. And can't say if it comes from Menu, or PopUpButton.
   
   Also as it is my first post here, i'll use this opportunity to thank you all for your great job with this project.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] sylvainfritsch commented on issue #968: Problems with mx:Menu position on PopupButton click.

Posted by GitBox <gi...@apache.org>.
sylvainfritsch commented on issue #968:
URL: https://github.com/apache/royale-asjs/issues/968#issuecomment-740033870


   I have identified the bug. 
   It comes from the line  350 of PopupButton.as :
   var point:Point = new Point(/*layoutDirection == "rtl" ?*/ _popUp.width /*: 0*/, unscaledHeight + popUpGap);
   
   The comment makes the popup to alway have the right to left behaviour, creating this bug.
   It's my first time, so i have no idea how to contribute to solve this issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org