Skip to content

Commit

Permalink
fix: check style object exists closes #264
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Nov 10, 2019
1 parent abe54ed commit 36bd859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/picker/picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class PickerComponent implements OnInit {
this.skinChange.emit(skin);
}
getWidth(): string {
if (this.style.width) {
if (this.style && this.style.width) {
return this.style.width;
}
return this.perLine * (this.emojiSize + 12) + 12 + 2 + this.measureScrollbar + 'px';
Expand Down

0 comments on commit 36bd859

Please sign in to comment.