Skip to content

Commit

Permalink
WIP: Change null to empty string to be consistent with PR #4351
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvorak committed Feb 5, 2019
1 parent 3fee18d commit 86cfdad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mdc-menu-surface/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ class MDCMenuSurface extends MDCComponent<MDCMenuSurfaceFoundation> {
return {x: window.pageXOffset, y: window.pageYOffset};
},
setPosition: (position) => {
this.root_.style.left = 'left' in position ? `${position.left}px` : null;
this.root_.style.right = 'right' in position ? `${position.right}px` : null;
this.root_.style.top = 'top' in position ? `${position.top}px` : null;
this.root_.style.bottom = 'bottom' in position ? `${position.bottom}px` : null;
this.root_.style.left = 'left' in position ? `${position.left}px` : '';
this.root_.style.right = 'right' in position ? `${position.right}px` : '';
this.root_.style.top = 'top' in position ? `${position.top}px` : '';
this.root_.style.bottom = 'bottom' in position ? `${position.bottom}px` : '';
},
setMaxHeight: (height) => {
this.root_.style.maxHeight = height;
Expand Down

0 comments on commit 86cfdad

Please sign in to comment.