6 Replies Latest reply on Oct 6, 2010 10:56 AM by piterzet

    Weird Problem with PopupButton display!

    Phoenix_Guru Level 1

      Hi,

       

      I have a simple Popup Button that displays a list of options. Very weirdly many times (At least the first time for sure) when I open the menu, all the options do not appear and the list seems to be broken. But when I start to scroll my mouse over the options, they start appearing.

       

      Here is what it looks like (I have blurred the text for security purposes):

       

      $207E618DC98A35CE.jpg

      I do not have any Itemrenderers assigned to it, not sure what's causing this issue. Any help would be appreciated.

       

      Thanks,

      Phoenix

        • 1. Re: Weird Problem with PopupButton display!
          franto kormanak Level 1

          still same bug Flex SDK 3.5. Though this is just problem when popup menu is opened for the first time. Next time it's all ok. Problematic is just first opening of popupbutton menu.

          • 2. Re: Weird Problem with PopupButton display!
            Phoenix_Guru Level 1

            Yes, it happens only for the first time mostly, but I am able to reproduce it some other times as well.

             

            I am using the 3.3 SDK, not 3.5.

             

            Do you know if this bug has been logged already or fixed in any further SDKs? Probably I would Monkey Patch if this is so.

             


            Thanks,

            Phoenix

            • 3. Re: Weird Problem with PopupButton display!
              Phoenix_Guru Level 1

              Any idea?

               

              I have popup buttons all over my application and most of them are having this issue. Please Help!!

               

               

              Thanks,

              Phoenix

              • 4. Re: Weird Problem with PopupButton display!
                franto kormanak Level 1

                No, I dont have any idea and didnt check Adobe bugs system. RIght now I have more priority work, so I dont have time to check PopupButton class, if this can be hacked in some way.

                 

                If you will find any info on this, please replay here. I will do same, if I will find anything

                 

                Thanks

                • 5. Re: Weird Problem with PopupButton display!
                  Yevhen Runts Level 1

                  Hi,

                  Does anybody fix this issue or find bug in Adobe Bugs Managment system?

                  • 6. Re: Weird Problem with PopupButton display!
                    piterzet

                    Hi,

                    I'm stuck with the same problem. I found a simple workaround. It works for me.

                     

                    What I done just before is:

                     

                     

                    public class MultiSelectComboBox extends PopUpButton

                    {

                         //some container to popup - in my case is selectable list box
                         private var cbCombo:CheckBoxCombo;
                         /**
                             ...
                         */

                     

                     

                         public function MultiSelectComboBox()

                         {

                              super();
                              addEventListener(FlexEvent.CREATION_COMPLETE, onCreationCompleted);
                              cbCombo = new CheckBoxCombo();
                              this.popUp = cbCombo;
                              cbCombo.addEventListener(FlexEvent.CREATION_COMPLETE, cbComboCompleted);
                              cbCombo.visible = false;
                              //.. something else what you want to do
                         }
                         private function onCreationCompleted(ev:FlexEvent):void {
                              //add cbCombo to stage  so it will be created before it will be used by user. It is invisible so user did'n see it.
                              // A thing is that when first time open was made there weren't created cbCombo yet.
                              parent.addChild(cbCombo);
                         }
                         private function cbComboCompleted(ev:FlexEvent):void {
                              parent.removeChild(cbCombo);
                              cbCombo.visible = true;
                              validateSize(true);
                              validateDisplayList();
                              //.. do anything else
                         }
                        
                    regards,
                    Piotr