Skip to content

Commit

Permalink
removed gs-min|max_w|h attribute
Browse files Browse the repository at this point in the history
* fix gridstack#2243
* removed `gs-min|max_w|h` attribute  generated in CSS or written out as they are never used for rendering, only for initial load. This reduce our column/row styles in half!
  • Loading branch information
adumesny committed Apr 9, 2023
1 parent 4bc23c3 commit 5d24e85
Show file tree
Hide file tree
Showing 10 changed files with 419 additions and 799 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ Better yet, here is a SASS code snippet which can make life much easier (Thanks
@for $i from 0 through $gridstack-columns {
&[gs-w='#{$i}'] { width: (100% / $gridstack-columns) * $i; }
&[gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; }
&[gs-min-w='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
&[gs-max-w='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
}
}
```
Expand Down
4 changes: 4 additions & 0 deletions doc/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Change log
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*

- [7.3.0-dev (TBD)](#730-dev-tbd)
- [7.3.0 (2023-04-01)](#730-2023-04-01)
- [7.2.3 (2023-02-02)](#723-2023-02-02)
- [7.2.2 (2023-01-16)](#722-2023-01-16)
Expand Down Expand Up @@ -82,6 +83,9 @@ Change log

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## 7.3.0-dev (TBD)
* feat [#2243](https://github.com/gridstack/gridstack.js/issues/2243) removed `gs-min|max_w|h` attribute generated in CSS or written out as they are never used for rendering, only for initial load. This reduce our column/row styles in half!

## 7.3.0 (2023-04-01)
* feat [#2229](https://github.com/gridstack/gridstack.js/pull/2229) support nonce for CSP. Thank you [@jedwards1211](https://github.com/jedwards1211)
* feat: support nested grids with Angular component demo. Thank you R. Blanken for supporting this.
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ gridstack.js API
- [`isAreaEmpty(x, y, width, height)`](#isareaemptyx-y-width-height)
- [`load(layout: GridStackWidget[], boolean | ((w: GridStackWidget, add: boolean) => void) = true)`](#loadlayout-gridstackwidget-boolean--w-gridstackwidget-add-boolean--void---true)
- [`makeWidget(el)`](#makewidgetel)
- [`makeSubGrid(el)`](#makeSubGrid)
- [`makeSubgrid(el)`](#makesubgridel)
- [`margin(value: numberOrString)`](#marginvalue-numberorstring)
- [`movable(el, val)`](#movableel-val)
- [`removeWidget(el, removeDOM = true, triggerEvent = true)`](#removewidgetel-removedom--true-triggerevent--true)
Expand Down
Loading

0 comments on commit 5d24e85

Please sign in to comment.