Skip to content

Commit

Permalink
checkbox fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelvasev committed Sep 17, 2015
1 parent 816f334 commit 6bbfa83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qtcore.js
Expand Up @@ -4472,12 +4472,12 @@ function QMLCheckbox(meta) {

this.Component.completed.connect(this, function() {
this.implicitHeight = this.dom.offsetHeight;
this.implicitWidth = this.dom.offsetWidth;
this.implicitWidth = this.dom.offsetWidth > 0 ? this.dom.offsetWidth + 4 : 0;
});
this.textChanged.connect(this, function(newVal) {
this.dom.children[1].innerHTML = newVal;
this.implicitHeight = this.dom.offsetHeight;
this.implicitWidth = this.dom.offsetWidth;
this.implicitWidth = this.dom.offsetWidth > 0 ? this.dom.offsetWidth + 4 : 0;
});
this.colorChanged.connect(this, function(newVal) {
newVal = QMLColor(newVal);
Expand Down

0 comments on commit 6bbfa83

Please sign in to comment.