diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index ba3621a29..622739cf7 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -351,10 +351,11 @@ define([ getCaptionWithBreaks: function (caption) { var words = caption.split(' '), newCaption = null, - maxWidth = 85 - 4; + maxWidth = 160 - 4;//85 - 4; if (words.length > 1) { maxWidth = !!this.menu || this.split === true ? maxWidth - 10 : maxWidth; if (words.length < 3) { + words[0] = getShortText(words[0], !!this.menu ? maxWidth + 10 : maxWidth); words[1] = getShortText(words[1], maxWidth); newCaption = words[0] + '
' + words[1]; } else { diff --git a/apps/common/main/resources/less/buttons.less b/apps/common/main/resources/less/buttons.less index f5731901f..a18e20c90 100644 --- a/apps/common/main/resources/less/buttons.less +++ b/apps/common/main/resources/less/buttons.less @@ -239,7 +239,7 @@ height: 24px; .caption { - max-width: 85px; + max-width: 160px;//85px; max-height: 24px; text-overflow: ellipsis;