add resize_widget_dimensions() to change widget dimensions after gridster initialization#336
Open
hrosenbauer wants to merge 20 commits intoducksboard:masterfrom
hrosenbauer:resize-widget-dimensions
Open
add resize_widget_dimensions() to change widget dimensions after gridster initialization#336hrosenbauer wants to merge 20 commits intoducksboard:masterfrom hrosenbauer:resize-widget-dimensions
hrosenbauer wants to merge 20 commits intoducksboard:masterfrom
hrosenbauer:resize-widget-dimensions
Conversation
resize widgets after initialization
|
+1 |
|
Exactly what we needed. |
|
Found one potential issue. After the grid has been render to the DOM and is showing on the web page, I am listening for when the browser window is resized. If I set the max_cols value (in my case 2), and don't set autogrow_cols to true when all the widgets are moved to the first column, you can't move them back to the second column. Other than that everything else has been working great. |
remove min-width and min-height after stopping resize
|
👍 |
|
Nice feature! |
$body won't receive mouseup if the cursor is outside the browser window, $document does
when the scrollX/Y is changed during drag (e.g. by the mousewheel) the offset wasn't correct
window.scrollX/Y is only available in Chrome, not in IE
Useful to use them when we there is no gridster instance, like sorting a previously stored output from the serialize method.
Useful when using `positionschanged` event, fired before gridster instance is cached.
resize widgets after initialization Conflicts: src/jquery.gridster.js
remove min-width and min-height after stopping resize
…r/gridster.js into resize-widget-dimensions Conflicts: src/jquery.gridster.js
|
+1 !! |
|
👍 |
|
Any chances to have this pulled? |
|
Can this pull request be merged please ? |
|
+1 |
|
Someone needs to get this merged! Its awesome!! |
|
Looks great I merged it into my fork dsmorse/gridster.js |
|
It's awesome!!, Thank U very much!!!!!! +100!!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(this is a updated version of my first pull-request - now in a separate branch)
(this pull request is based on the discussion of #77 and the code of https://gist.github.com/OwlyCode/6421823 with small changes, so most of the credits go to https://github.com/OwlyCode)
This will add resize_widget_dimensions() to gridster.js which allows to resize the widget dimensions after initialization:
It's very useful to resize the dashboard when the browser window is resized.