prevent messageBubbleLeftRightMargin from being negative. fix #486
close #484
fix settings