Skip to content

Commit

Permalink
fix(layout): remove % note from sidenavWidth (#738)
Browse files Browse the repository at this point in the history
also fix issue where the width would act weird in certain occations when the min-width was greater than the max-width
  • Loading branch information
emoralesb05 authored Jul 5, 2017
1 parent b948746 commit ec31c38
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/platform/core/layout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| --- | --- | --- |
| mode | 'over', 'side' or 'push' | The mode or styling of the sidenav. Defaults to 'over'.
| opened | boolean | Whether or not the sidenav is opened. Use this binding to open/close the sidenav. Defaults to 'false'.
| sidenavWidth | string | Sets the 'width' of the sidenav in either 'px' or '%' ('%' is not well supported yet as stated in the layout docs). Defaults to '320px'.
| sidenavWidth | string | Sets the 'width' of the sidenav in either 'px' or '%'. Defaults to '320px'.


## Usage
Expand Down
2 changes: 1 addition & 1 deletion src/platform/core/layout/layout-manage-list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| --- | --- | --- |
| mode | 'over', 'side' or 'push' | The mode or styling of the sidenav. Defaults to 'side'.
| opened | boolean | Whether or not the sidenav is opened. Use this binding to open/close the sidenav. Defaults to 'true'.
| sidenavWidth | string | Sets the 'width' of the sidenav in either 'px' or '%' ('%' is not well supported yet as stated in the layout docs). Defaults to '257px'.
| sidenavWidth | string | Sets the 'width' of the sidenav in either 'px' or '%'. Defaults to '257px'.


## Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[opened]="opened"
[disableClose]="disableClose"
[style.max-width]="sidenavWidth"
[style.min-width]="sidenavWidth"
layout="column"
layout-fill
class="md-whiteframe-z1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class TdLayoutManageListComponent implements ILayoutTogglable {
/**
* sidenavWidth?: string
*
* Sets the "width" of the sidenav in either "px" or "%" ("%" is not well supported yet as stated in the layout docs)
* Sets the "width" of the sidenav in either "px" or "%"
* Defaults to "257px".
*
* https://github.com/angular/material2/tree/master/src/lib/sidenav
Expand Down
2 changes: 1 addition & 1 deletion src/platform/core/layout/layout-nav-list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| navigationRoute | string | option to set the combined route for the icon, logo, and toolbarTitle.
| mode | 'over', 'side' or 'push' | The mode or styling of the sidenav. Defaults to 'side'.
| opened | boolean | Whether or not the sidenav is opened. Use this binding to open/close the sidenav. Defaults to 'true'.
| sidenavWidth | string | Sets the 'width' of the sidenav in either 'px' or '%' ('%' is not well supported yet as stated in the layout docs). Defaults to '257px'.
| sidenavWidth | string | Sets the 'width' of the sidenav in either 'px' or '%'. Defaults to '257px'.


## Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[opened]="opened"
[disableClose]="disableClose"
[style.max-width]="sidenavWidth"
[style.min-width]="sidenavWidth"
layout="column"
layout-fill
class="md-whiteframe-z1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class TdLayoutNavListComponent implements ILayoutTogglable {
/**
* sidenavWidth?: string
*
* Sets the "width" of the sidenav in either "px" or "%" ("%" is not well supported yet as stated in the layout docs)
* Sets the "width" of the sidenav in either "px" or "%"
* Defaults to "350px".
*
* https://github.com/angular/material2/tree/master/src/lib/sidenav
Expand Down
1 change: 1 addition & 0 deletions src/platform/core/layout/layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[mode]="mode"
[opened]="opened"
[style.max-width]="sidenavWidth"
[style.min-width]="sidenavWidth"
[disableClose]="disableClose">
<ng-content select="td-navigation-drawer"></ng-content>
<ng-content select="[td-sidenav-content]"></ng-content>
Expand Down
2 changes: 1 addition & 1 deletion src/platform/core/layout/layout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class TdLayoutComponent implements ILayoutTogglable {
/**
* sidenavWidth?: string
*
* Sets the "width" of the sidenav in either "px" or "%" ("%" is not well supported yet as stated in the layout docs)
* Sets the "width" of the sidenav in either "px" or "%"
* Defaults to "320px".
*
* https://github.com/angular/material2/tree/master/src/lib/sidenav
Expand Down

0 comments on commit ec31c38

Please sign in to comment.