guy 7 years ago
parent
commit
e49224c918
  1. 10
      bi/base.js
  2. 10
      docs/base.js
  3. 8
      src/base/single/button/buttons/button.js
  4. 2
      src/base/single/text.js

10
bi/base.js

@ -545,7 +545,7 @@ BI.Text = BI.inherit(BI.Single, {
this.setText(o.value); this.setText(o.value);
} }
if (BI.isKey(o.keyword)) { if (BI.isKey(o.keyword)) {
this.element.__textKeywordMarked__(o.text, o.keyword, o.py); this.text.element.__textKeywordMarked__(o.text, o.keyword, o.py);
} }
}, },
@ -16345,9 +16345,9 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) {
BI.Button.superclass._init.apply(this, arguments); BI.Button.superclass._init.apply(this, arguments);
var o = this.options, self = this; var o = this.options, self = this;
if (BI.isNumber(o.height) && !o.clear && !o.block) { if (BI.isNumber(o.height) && !o.clear && !o.block) {
this.element.css({height: o.height - 2, lineHeight: (o.height - 2) + 'px'}); this.element.css({height: o.height + "px", lineHeight: o.height + "px"});
} else { } else {
this.element.css({lineHeight: o.height + 'px'}); this.element.css({lineHeight: o.height + "px"});
} }
if (BI.isKey(o.iconClass)) { if (BI.isKey(o.iconClass)) {
this.icon = BI.createWidget({ this.icon = BI.createWidget({
@ -16400,8 +16400,8 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) {
if (o.clear === true) { if (o.clear === true) {
this.element.addClass("clear"); this.element.addClass("clear");
} }
if (o.minWidth > 2) { if (o.minWidth > 0) {
this.element.css({"min-width": o.minWidth - 2 + "px"}); this.element.css({"min-width": o.minWidth + "px"});
} }
}, },

10
docs/base.js

@ -545,7 +545,7 @@ BI.Text = BI.inherit(BI.Single, {
this.setText(o.value); this.setText(o.value);
} }
if (BI.isKey(o.keyword)) { if (BI.isKey(o.keyword)) {
this.element.__textKeywordMarked__(o.text, o.keyword, o.py); this.text.element.__textKeywordMarked__(o.text, o.keyword, o.py);
} }
}, },
@ -16345,9 +16345,9 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) {
BI.Button.superclass._init.apply(this, arguments); BI.Button.superclass._init.apply(this, arguments);
var o = this.options, self = this; var o = this.options, self = this;
if (BI.isNumber(o.height) && !o.clear && !o.block) { if (BI.isNumber(o.height) && !o.clear && !o.block) {
this.element.css({height: o.height - 2, lineHeight: (o.height - 2) + 'px'}); this.element.css({height: o.height + "px", lineHeight: o.height + "px"});
} else { } else {
this.element.css({lineHeight: o.height + 'px'}); this.element.css({lineHeight: o.height + "px"});
} }
if (BI.isKey(o.iconClass)) { if (BI.isKey(o.iconClass)) {
this.icon = BI.createWidget({ this.icon = BI.createWidget({
@ -16400,8 +16400,8 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) {
if (o.clear === true) { if (o.clear === true) {
this.element.addClass("clear"); this.element.addClass("clear");
} }
if (o.minWidth > 2) { if (o.minWidth > 0) {
this.element.css({"min-width": o.minWidth - 2 + "px"}); this.element.css({"min-width": o.minWidth + "px"});
} }
}, },

8
src/base/single/button/buttons/button.js

@ -40,9 +40,9 @@
BI.Button.superclass._init.apply(this, arguments); BI.Button.superclass._init.apply(this, arguments);
var o = this.options, self = this; var o = this.options, self = this;
if (BI.isNumber(o.height) && !o.clear && !o.block) { if (BI.isNumber(o.height) && !o.clear && !o.block) {
this.element.css({height: o.height - 2, lineHeight: (o.height - 2) + 'px'}); this.element.css({height: o.height + "px", lineHeight: o.height + "px"});
} else { } else {
this.element.css({lineHeight: o.height + 'px'}); this.element.css({lineHeight: o.height + "px"});
} }
if (BI.isKey(o.iconClass)) { if (BI.isKey(o.iconClass)) {
this.icon = BI.createWidget({ this.icon = BI.createWidget({
@ -95,8 +95,8 @@
if (o.clear === true) { if (o.clear === true) {
this.element.addClass("clear"); this.element.addClass("clear");
} }
if (o.minWidth > 2) { if (o.minWidth > 0) {
this.element.css({"min-width": o.minWidth - 2 + "px"}); this.element.css({"min-width": o.minWidth + "px"});
} }
}, },

2
src/base/single/text.js

@ -78,7 +78,7 @@ BI.Text = BI.inherit(BI.Single, {
this.setText(o.value); this.setText(o.value);
} }
if (BI.isKey(o.keyword)) { if (BI.isKey(o.keyword)) {
this.element.__textKeywordMarked__(o.text, o.keyword, o.py); this.text.element.__textKeywordMarked__(o.text, o.keyword, o.py);
} }
}, },

Loading…
Cancel
Save