vinny75 / blackbirdjs

Blackbird - Open Source JavaScript Logging Utility
0 stars 0 forks source link

improvement - Drag and drop #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi! It would by nice if the window supported drag and drop. That is not the
crucial thing to do, but that would be nice!

Original issue reported on code.google.com by s...@ami.cz on 16 Oct 2008 at 7:55

GoogleCodeExporter commented 9 years ago
Are you using any particular js-library (dojo, jQuery, YUI)? If you are -- it's 
a
one-liner? This feature can be a bit heavy on the code (if done from scratch),
especially that it will probably not be used that often (how many times would a
developer really need to drag/drop the log-window when he's in his 
groove/dev-mode?).

-gc

Original comment by GeorgeC...@gmail.com on 18 Oct 2008 at 7:51

GoogleCodeExporter commented 9 years ago
But sometimes you need to see what is behind the window, isn't it?
So I think in the debug mode, js file size shouldn't be a problem.

Original comment by paranoid...@gmail.com on 30 Oct 2008 at 4:15

GoogleCodeExporter commented 9 years ago
You can see what's behind the window... simply call log.move() or press 
F2+shift.

Drag-and-drop is a nice-to-have feature.  Maybe version 2...

Original comment by gscottol...@gmail.com on 30 Oct 2008 at 4:53

GoogleCodeExporter commented 9 years ago
Haha.  I can't believe that I came here and there was a comment just yesterday 
about Drag and Drop.  
Immediately the first thing I thought of when I saw this was "why can't I move 
it!?!?"  So, two hours and a lot 
of learning later I made a draggable version without including a library, just 
some straightforward slimmed 
down open source javascript:
http://bogojoker.com/dump/example_drag.html

The timestamp on my webserver shows I uploaded it => "17-Oct-2008 01:14"

I only added some Javascript which, after studying, I optimized for Blackbird:
http://bogojoker.com/dump/blackbird_drag.js

Changes:
1. Added an id to the upper portion "bbHandle"
2. Added a MiniDrag"class"
3. Attach the MiniDrag to the bbHandle to move the entire blackbird div

What do you think?

Original comment by joepec...@gmail.com on 1 Nov 2008 at 1:34

Attachments:

GoogleCodeExporter commented 9 years ago
Awesome work, Joe! I completely take my words ("heavy on the code") back. Wow 
-- <50
lines for the whole functionality, unminified(!). My opinion is that it should 
be a
nice little plugin rather then a integral component, but its pretty cool 
nonetheless.

Original comment by GeorgeC...@gmail.com on 1 Nov 2008 at 8:09

GoogleCodeExporter commented 9 years ago
great job Joe. 

Original comment by r.ju...@gmail.com on 14 Apr 2009 at 7:49