#612 sespininput width class set changes

master
agriyadev5 2021-08-19 12:29:03 +05:30
parent ab67fa2e03
commit 9d56df3c8c
2 changed files with 2 additions and 2 deletions

View File

@ -88,9 +88,9 @@ export class SESpinInput extends HTMLElement {
case 'src': case 'src':
this.$img.setAttribute('src', newValue); this.$img.setAttribute('src', newValue);
this.$label.remove(); this.$label.remove();
this.$div.classList.add('imginside');
break; break;
case 'width': case 'width':
this.$div.classList.add('imginside');
this.$div.style.setProperty('--se-spin-input-width', newValue + 'px'); this.$div.style.setProperty('--se-spin-input-width', newValue + 'px');
break; break;
case 'size': case 'size':

View File

@ -210,7 +210,7 @@ class BottomPanel {
height="22px"></img></se-list-item> height="22px"></img></se-list-item>
</se-list> </se-list>
<se-spin-input size="3" id="opacity" min=0 max=100 step=5 title="${i18next.t('properties.opacity')}" <se-spin-input size="3" id="opacity" min=0 max=100 step=5 title="${i18next.t('properties.opacity')}"
src="${imgPath}/opacity.svg" width="82"></se-spin-input> src="${imgPath}/opacity.svg"></se-spin-input>
<se-palette id="palette"></se-palette> <se-palette id="palette"></se-palette>
</div> </div>
`; `;