-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
resize option not work #596
Comments
I face the same issue can anyone get any solutions? |
@bipin244 i fixed this by adding safe navigator to source code. fn.resizable = function () { this.resize_api = this.$el.gridDraggable({ items: '.' + this.options.resize.handle_class, offset_left: this.options.widget_margins[0], container_width: this.container_width, move_element: false, resize: true, limit: { //here width: this.options.max_cols !== Infinity || (this.limit || {}).width, height: this.options.max_rows !== Infinity || (this.limit || {}).height }, scroll_container: this.options.scroll_container, start: $.proxy(this.on_start_resize, this), stop: $.proxy(function (event, ui) { delay($.proxy(function () { this.on_stop_resize(event, ui); }, this), 120); }, this), drag: throttle($.proxy(this.on_resize, this), 60) }); return this; }; |
I see this issue was reported on January the 2, and @icepoint0 provided a solution the 12, I've just downloaded the library and encountered the same problem, tried his fix and it works, if not already, this should be proposed in a pull request (I do not see it in current pull requests). |
Hi guys! I'm facing the same issue, can you especif where did you added theses line? Thank you! |
Did you figure it out? Goes in the gridster.js file 👍 |
when i init the gridster
The text was updated successfully, but these errors were encountered: