SuperPanel Component 1.3
I added a few updates to my SuperPanel component:
- Better event dispatching
- Added an optional sizing constraint ratio called ’sizeRatio’ to ensure that the panel stays at a certain width and height ratio when resizing.
- Misc. bug-fixes and refactoring.
SuperPanelDemo
If you found this post useful, please consider a small donation.
This entry was written by
Brandon, posted on
February 10, 2009 at 9:43 pm, filed under
Components and tagged
ActionScript,
drag,
Flex,
maximize,
minimize,
panel,
resize,
SuperPanel. Bookmark the
permalink. Follow any comments here with the
RSS feed for this post.
or leave a trackback:
Trackback URL.
12 Comments
Hi Brandon,
SuperPanel really rocks, are you planning to add something like a Taskbar to control all opened SuperPanels? Like, when you minimize a Panel, instead of hide its content keeping title, it minimize to a bar, where you can click to restore the Panel.
It would be very nice.
Thanks for share it.
Robs.
Hi Brandon
Your component looks awesome! It’s just what I’d been looking for and I would love to incorporate it to my project… is there any way I can get a hold of the source code?
Thanks,
David
I was wondering the same thing as David C. I’ve been using the current SuperPanel but I really like yours can I get the source code?
Hi
Somebody knows how to trigger a minimized version of a panel? [onload/init]
Cannot figure it out at the moment…
Valentijn
In the creationComplete handler call the minimize() function on the panel like so: myPanel.minimize();
Very very nice. Installed easily, built and ran. Not all packages do that!
Thanks.
Thank you very much for the great component!
found a minor bug. if the superpanel height value was not provided, it failed to render the resizeHitBox even if we set allowResize to true. resizeHitBox only shows up if we move the superpanel.
my fix: modified this line (line 1799 in SuperPanel.as)
if (this.height == titleBar.height || maximized)
to
if (this.height != 0 && (this.height == titleBar.height || maximized))
Thanks for the fix, Will!
Patch applied in 1.3.4
Hey Brandon! Thanks for the excellent code… it saved me from having a big headache. Quick question (and a little background): I have a menubar that, when a sub-menu item is clicked, a superpanel is displayed (visible=”true”). Once the superpanel is closed using the “X” button, the superpanel can’t be restored through the sub-menu item.
I’m still getting used to Flex so any ideas you have that would help me fix this are greatly appreciated!!!
Like this a lot in IE. However, when I run it in Firefox I completely lose the ability to mouse click
http://www.premiersoccerstats.com/epl.html
Has anyone else come across this problem? viz losing ability to
do mouse clicks when using FireFox
It also applies in IE if the browser is not at maximum size
Also does not appear to work if using swfobject to embed the swf. Shame as its a great component