Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
Thanks, Tim. Knew there must be something, just couldn't find it. I found this to be a good way to do it, as long as I'm not missing something: gr.validateSize(true); var verticalGap:Number = grid.getStyle(verticalGap); grid.scrollRect = new Rectangle(0, 0, grid.width + gr.measuredWidth,

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
Yep, that looks great. I thought about all of that, but knew that you'd tweak it to get what you needed. Glad that I could finally help you out with something Jason. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Thanks, Tim. Knew there must be something,

Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
C'mon, Tim, your posts help me loads of times and you don't even realize it. My #1 place to go for searching for answers to tough problems is my flexcoders archive and your name pops up a lot with the answer! And RowColorDataGrid was a lifesaver. Okay, back to the topic. Just realized that

Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
I should know better by now to never declare victory until you tried your test app solution in your REAL app. A problem occured that if your popupbutton is embedded in another control, the y value will no longer be in the same frame of reference as the popup, which is no a child of the same

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
Ha, what I meant is that years ago, you helped me with a problem that I was having with RowColorDataGrid and I was also able to use a tree with connector lines that you created. Just glad to return the favor. :) -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@... wrote:

Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
Yet another correction: grid.scrollRect = new Rectangle(0, 0, Math.max(grid.width, gr.measuredWidth), grid.height + gr.measuredHeight + (isNaN(verticalGap) ? 0 : verticalGap)); Didn't make sense to add the width in this example. I thought you were referring to the last couple of threads of

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
I'm glad that you're posting these corrections, cause I'm keeping this solution for future reference. ;) btw, I'm still using your tree in a little source code explorer app that I made (bugs and all) :P http://www.timothyhoff.com/projects/googlemate/srcView/GoogleMateSourceC\ odeExplorer.html

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-15 Thread Tim Hoff
Hi Jason, Put this at the end of addCategory(): myPopupButton.popUp.scrollRect = new Rectangle(0, 0, myPopupButton.popUp.width, myPopupButton.popUp.height + 30); Add an id: PopUpButton id=myPopupButton openAlways=true This will trick the popup into redrawing. -TH --- In