Fix inline expanding issue with new styles
This commit is contained in:
parent
de524c64d9
commit
dedc531adc
@ -25,6 +25,7 @@ onready(function(){
|
|||||||
if (e.which == 2 || e.metaKey)
|
if (e.which == 2 || e.metaKey)
|
||||||
return true;
|
return true;
|
||||||
if (!this.dataset.src) {
|
if (!this.dataset.src) {
|
||||||
|
this.parentNode.removeAttribute('style');
|
||||||
this.dataset.expanded = 'true';
|
this.dataset.expanded = 'true';
|
||||||
this.dataset.src= this.childNodes[0].src;
|
this.dataset.src= this.childNodes[0].src;
|
||||||
this.dataset.width = this.childNodes[0].style.width;
|
this.dataset.width = this.childNodes[0].style.width;
|
||||||
@ -39,6 +40,7 @@ onready(function(){
|
|||||||
delete this.style.filter;
|
delete this.style.filter;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
this.parentNode.style.width = (parseInt(this.dataset.width)+40)+'px';
|
||||||
this.childNodes[0].src = this.dataset.src;
|
this.childNodes[0].src = this.dataset.src;
|
||||||
this.childNodes[0].style.width = this.dataset.width;
|
this.childNodes[0].style.width = this.dataset.width;
|
||||||
this.childNodes[0].style.height = this.dataset.height;
|
this.childNodes[0].style.height = this.dataset.height;
|
||||||
|
Loading…
Reference in New Issue
Block a user