Skip to main content

Search and Top Navigation

#4861 open bug ()

Opened September 16, 2009 07:15PM UTC

Last modified October 25, 2012 01:42PM UTC

Resizable: Ghosting doesn't adheer to the Grid

Reported by: seth.aldridge Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.resizable Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

I have setup a simple div that moves on the X axis using resize(). The issue I've found is when I use:

ghost: true,

grid: [50, 0]

The ghost property allows the element to slide in between the grid areas which will make elements not align to the grid.

$(this).resizable({

handles: 'e',

ghost:true,

grid:[15,0],

resize: function() {

$('.tasks li').unbind('mouseenter', highlight);

},

stop: function() {

$('.tasks li')

.bind('mouseenter', highlight)

.bind('mouseleave', hide_highlight);

}

});

Thanks,

Seth

Attachments (0)
Change History (6)

Changed September 16, 2009 10:30PM UTC by seth.aldridge comment:1

I also found this to be true with the alsoResize and helper properties.

Thanks, Seth

Changed November 17, 2009 02:25PM UTC by jzaefferer comment:2

milestone: TBD1.8

Changed November 24, 2009 11:54AM UTC by nop comment:3

There is a quick fix: "grid" plugin should be the first one in ui.resizable.js (near the line 528)

/*

  • Resizable Extensions

*/

$.ui.plugin.add("resizable", "grid", .....

Then all other plugins will have size with respect to grid.

Changed December 09, 2010 07:23PM UTC by prestonparris comment:4

I have come up with a solution for this, I submitted a pull request on git hub. https://github.com/prestonparris/jquery-ui/commit/0438e80e5f865981f01fbf0f0dbad8db44957f47

Changed October 11, 2012 02:52PM UTC by scottgonzalez comment:5

milestone: 1.9.02.0.0

Changed October 25, 2012 01:42PM UTC by tj.vantoll comment:6

status: newopen
summary: Ghosting doesn't adheer to the GridResizable: Ghosting doesn't adheer to the Grid

Still an issue in 1.9 http://jsfiddle.net/tj_vantoll/kB26B/. The pull request referenced above now 404s.