Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop anywhere on the grid. #45

Open
mzupan opened this issue Sep 11, 2012 · 35 comments
Open

Drop anywhere on the grid. #45

mzupan opened this issue Sep 11, 2012 · 35 comments

Comments

@mzupan
Copy link

mzupan commented Sep 11, 2012

I'm using the extra_rows/extra_cols and playing around with 1 element. It always snaps up to the top row as expected.. Is there anyway to have it snap to any row other then the top if you use extra_rows?

@epau
Copy link

epau commented Sep 12, 2012

I would also like to know how to do this.

@datamosh
Copy link

+1

4 similar comments
@mellson
Copy link

mellson commented Sep 23, 2012

+1

@goldnead
Copy link

+1

@Disminder
Copy link

+1

@slowpokewarrior
Copy link

+1

@jgoux
Copy link

jgoux commented Oct 8, 2012

+1, I'm building a personal form page and this feature would be useful !

@ctat
Copy link

ctat commented Oct 11, 2012

+1, I would actually like the opposite functionality, where the widgets in each column will not auto snap up but stay where they are put and have the widgets in the rows automatically snap to the left. Is this possible and if so what is the timeline?

The most flexible solution would be to have options to individually set the auto-snap.

A method to enable/disable auto snap up on column and a method to enable/disable auto snap left on row.

Possible?

Thanks
Chris

@pedro380085
Copy link

+1 Really important to me, would help building a very flexible map.

@JimEverest
Copy link

+1

1 similar comment
@pat75
Copy link

pat75 commented Jan 25, 2013

+1

@Pointy-hair
Copy link

+1 A must have feature. Is this project dead as there seems to be little input? Probably one of the most powerful controls of this type that needs a little polish to make incredibly good.

@Oscar1984
Copy link

+1. Must have.

@ereale
Copy link

ereale commented Mar 1, 2013

+1

@dustmoo
Copy link
Contributor

dustmoo commented Mar 1, 2013

I am working on updating a fork with new features, it still has a way to go,

But go ahead and post issues like this on the fork and I will work on getting them integrated.

https://github.com/dustmoo/gridster.js

@facultymatt
Copy link

+1

@bompus
Copy link

bompus commented May 29, 2013

I'm not sure of the side effects, but I was able to accomplish this with the following:

Search for:
if (pp !== false) {

Replace with:
if (pp !== false && 1 === 2) {

Obviously this isn't a real fix, but it shows that if "pp" returns false, that it turns it into a blank canvas without the columns above requirement. I tested it quite a bit and couldn't see any negative.

@bompus
Copy link

bompus commented May 29, 2013

On second look.. This makes the placeholder/preview hard to position where you want it as it really can move anywhere, so this needs some refining.

@bpbhat77
Copy link

bpbhat77 commented Sep 2, 2013

+1

@chullski
Copy link

this feature would be awsome --> +999999999

@trevorgreenleaf
Copy link

+1

2 similar comments
@sebkasanzew
Copy link

+1

@lgm42
Copy link

lgm42 commented Feb 6, 2014

+1

@Elmervc
Copy link

Elmervc commented Feb 11, 2014

And another use-case that requires to turn off auto-snap-to-top: time table scheduling. Would be really nice if this can be done.

@creationmachine
Copy link

+1

1 similar comment
@chaosotic
Copy link

+1

@Dosix
Copy link

Dosix commented Mar 12, 2014

Any news about this function ? Because me too i need that @dustmoo :)

@singhularity
Copy link

+1

@zelitors
Copy link

+1

2 similar comments
@SuperCoolSEBoy
Copy link

+1

@abernix
Copy link

abernix commented Oct 5, 2014

+1

@DomTheDeveloper
Copy link

The hack from @bompus was great, but I was having a problem that widgets would swing back up when:

  • widget is resized
  • another widget is dragged above the widget

Making fn.can_go_up_to_row always return false fixed the problem.

Here is the hack that WFM:

fn.can_go_up_to_row = function(widget_grid_data, col, row) {
return false;
};

@lgm42
Copy link

lgm42 commented Oct 9, 2014

@DomTheDeveloper you are near ! But I can't resize an item using the hack of @bompus and your modification. But the drag work ! And the creation at a coord greater than 1 too !

@lgm42
Copy link

lgm42 commented Oct 13, 2014

Sorry, with 0.5.2 version it's working well !!!!
Thanks a lot @bompus and @DomTheDeveloper !

@andreabadesso
Copy link

+1

matt-steinwachs added a commit to centerforbiophotonics/gridster-rails that referenced this issue Apr 15, 2015
stevenlhunter pushed a commit to stevenlhunter/gridster.js that referenced this issue Jun 5, 2015
based on notes in this thread:
ducksboard#45

[see bompus and DomTheDeveloper’s comments]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests