Fix size picker display for pen size > 4
This commit is contained in:
parent
66452de1e5
commit
c5c8184ae3
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
pskl.utils.Dom.removeClass('selected', this.container);
|
||||
var selectedOption;
|
||||
selectedOption = this.container.querySelector('[data-size="' + size + '"]');
|
||||
if (typeof selectedOption === 'undefined') {
|
||||
if (!selectedOption) {
|
||||
selectedOption = this.container.querySelector('[data-size]:last-child');
|
||||
selectedOption.classList.add('labeled');
|
||||
selectedOption.setAttribute('real-size', size);
|
||||
|
|
Loading…
Reference in a new issue