Skip to content

Commit 8fe14be

Browse files
committed
cleanup old rtl residue - do not apply direction to grid-stack-rtl
^ Conflicts: ^ src/gridstack.scss
1 parent 61ea383 commit 8fe14be

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

demo/right-to-left(rtl).html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ <h1>RTL Demo</h1>
3232
{x: 6, y: 0, w: 2, h: 2},
3333
];
3434
items.forEach((item, i) => item.content = 'item ' + i);
35-
let grid = GridStack.init({rtl: true, children: items});
35+
let grid = GridStack.init({
36+
rtl: true,
37+
float: true,
38+
children: items,
39+
resizable: {handles: 'sw,se'}
40+
});
3641

3742
function addWidget() {
3843
let w = {

src/gridstack.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99
position: relative;
1010
}
1111

12-
.grid-stack-rtl {
13-
direction: ltr;
14-
> .grid-stack-item {
15-
direction: rtl;
16-
}
17-
}
18-
1912
.grid-stack-placeholder > .placeholder-content {
2013
background-color: rgba(0,0,0,0.1);
2114
margin: 0;

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export interface GridStackOptions {
354354
row?: number;
355355

356356
/**
357-
* if true turns grid to RTL. Possible values are true, false, 'auto' (default?: 'auto')
357+
* if true turns grid to RTL, and applies the `grid-stack-rtl class`. Possible values are true, false, 'auto' (default?: 'auto')
358358
* See [example](http://gridstack.github.io/gridstack.js/demo/right-to-left(rtl).html)
359359
*/
360360
rtl?: boolean | 'auto';

0 commit comments

Comments
 (0)