Skip to content

Commit 2b74ff5

Browse files
authored
Update NotificationItem.jsx
Remove of the height reset on render. This fixes the height of the notification, and prevents having dynamic children (with variable height) to be displayed properly. Should also help in closing #77.
1 parent 7731449 commit 2b74ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NotificationItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ var NotificationItem = React.createClass({
264264
}
265265

266266
if (this.state.visible && !this.state.removed) {
267-
notificationStyle.height = this._height;
267+
//notificationStyle.height = this._height; // this prevents having an automated height when placing high children in notification
268268
notificationStyle[cssByPos.property] = 0;
269269
}
270270

0 commit comments

Comments
 (0)