kristopolous / BOOTSTRA.386

A vintage 1980s DOS inspired Twitter Bootstrap theme
https://bootstra386.com
Apache License 2.0
6.64k stars 309 forks source link

[question] Movable dialogs? #32

Open ghost opened 10 years ago

ghost commented 10 years ago

Hey,

are there any plans to implement an movable dialog? It would be great if you will support this!

Regards, Jan

JTxt commented 10 years ago

edit.exe's (I assume that's the major inspiration) dialogs don't move, but it's possible and could be neat working with the blocky mouse cursor and constrained to the character grid.

(Reminds me of Borland's turbovision. (screenshot) Which is cool too. Perhaps bootstra.386 could use some inspiration from tvision's widgets where edit.exe falls short.)

kristopolous commented 10 years ago

I plan to make them static. If I can get an acceptable algorithm down that locks the position during the move then I can entertain that.

kaystrobach commented 10 years ago

@kristopolous IMHO they should be static

@JTxt take a look here:

https://stackoverflow.com/questions/12571922/make-bootstrap-twitter-dialog-modal-draggable

$(".modal-dialog").draggable({
    handle: ".modal-header"
}); 

should make all modals dragable ...

techdragon commented 9 years ago

perhaps there is something to be learned from how the guys at http://asciiflow.com did their box dragging JS

kristopolous commented 9 years ago

hate to tell you but it's a giant canvas layer. they are doing it the "easier" way ...