mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix size picker display for pen size > 4
This commit is contained in:
parent
66452de1e5
commit
c5c8184ae3
@ -28,7 +28,7 @@
|
|||||||
pskl.utils.Dom.removeClass('selected', this.container);
|
pskl.utils.Dom.removeClass('selected', this.container);
|
||||||
var selectedOption;
|
var selectedOption;
|
||||||
selectedOption = this.container.querySelector('[data-size="' + size + '"]');
|
selectedOption = this.container.querySelector('[data-size="' + size + '"]');
|
||||||
if (typeof selectedOption === 'undefined') {
|
if (!selectedOption) {
|
||||||
selectedOption = this.container.querySelector('[data-size]:last-child');
|
selectedOption = this.container.querySelector('[data-size]:last-child');
|
||||||
selectedOption.classList.add('labeled');
|
selectedOption.classList.add('labeled');
|
||||||
selectedOption.setAttribute('real-size', size);
|
selectedOption.setAttribute('real-size', size);
|
||||||
|
Loading…
Reference in New Issue
Block a user