Skip to content

Commit

Permalink
fix mobileBreakpoint doesn't work #9
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuzuld committed Mar 24, 2017
1 parent 0eb7319 commit 8032e13
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 13 deletions.
11 changes: 6 additions & 5 deletions dist/gridster.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,28 @@
-webkit-user-select: none;
}

:host.fit {
:host(.fit) {
overflow-x: hidden;
overflow-y: hidden;
}

:host.scrollVertical {
:host(.scrollVertical) {
overflow-x: hidden;
overflow-y: auto;
}

:host.scrollHorizontal {
:host(.scrollHorizontal) {
overflow-x: auto;
overflow-y: hidden;
}

:host.mobile {
:host(.mobile) {
overflow-x: hidden;
overflow-y: auto;
display: block;
}

:host.mobile gridster-item {
:host(.mobile) /deep/ gridster-item {
position: relative;
}

Expand Down
11 changes: 6 additions & 5 deletions lib/gridster.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,28 @@
-webkit-user-select: none;
}

:host.fit {
:host(.fit) {
overflow-x: hidden;
overflow-y: hidden;
}

:host.scrollVertical {
:host(.scrollVertical) {
overflow-x: hidden;
overflow-y: auto;
}

:host.scrollHorizontal {
:host(.scrollHorizontal) {
overflow-x: auto;
overflow-y: hidden;
}

:host.mobile {
:host(.mobile) {
overflow-x: hidden;
overflow-y: auto;
display: block;
}

:host.mobile gridster-item {
:host(.mobile) /deep/ gridster-item {
position: relative;
}

Expand Down
4 changes: 4 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from './gridster.component';
export * from './gridsterItem.component';
export * from './gridsterConfig.interface';
export * from './gridster.module';
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "angular-gridster2",
"version": "2.0.6",
"version": "2.0.7",
"license": "MIT",
"main": "dist/gridster.module.js",
"jsnext:main": "dist/gridster.module.js",
"module": "dist/gridster.module.js",
"types": "dist/gridster.module.d.ts",
"typings": "dist/gridster.module.d.ts",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down Expand Up @@ -40,7 +41,8 @@
"Tiberiu Zuld"
],
"files": [
"dist/*"
"dist/*",
"lib/*"
],
"dependencies": {
"@angular/common": ">2.4.0",
Expand Down
13 changes: 12 additions & 1 deletion src/app/app.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,19 @@
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
justify-content: space-around;
flex: 1 auto;
flex-wrap: wrap;
width: 100%;
height: 100%;
}

:host /deep/ .mat-toolbar-row {
height: initial !important;
}

md-toolbar {
flex: 0 0 auto;
}

gridster-item div.button-holder {
Expand Down

0 comments on commit 8032e13

Please sign in to comment.