Of course I had to do this but this was much easier. Now you can drag the tabs to reorder them. Works pretty well. The one thing that seems lacking is instant notification where the new tab is going (on MouseMove), like FireFox brings up a purple arrow at the point where the tab is going. I dont know if I have the time for that, especially since it doesn’t seem like I will be using this container for my project, but the implementation should be simple.
Check the swf out here, and right click to view source.
If you are using this in a commercial app or something make sure you catch history management errors since removing tabs screws up history before that event (there isnt a tab-add undo when you click back
), and brings up the error stack trace if you are running the debug player.
Hope this helps someone
.
[Update]Â Responding to a query from someone, this code is released under the MIT license. You can download/fork the code from the GitHub Repository
Software Engineer at Comcast Innovation Labs, Creative Technologist, Open Source enthusiast, amateur illustrator, manager Philly Android Alliance User Group. The content on this blog do not reflect the views of my employer.
Pingback: dougmccune.com » Blog Archive » The Quest for the Perfect TabNavigator
Pingback: dougmccune.com » Blog Archive » Quest for the Perfect TabNavigator - Part 3 (with source)
Pingback: code zen » Blog Archive » 100 Posts! A retrospective and the best links from my blog.