diff options
| author | Fredrick Brennan <admin@8chan.co> | 2014-04-30 10:21:02 -0400 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-04-30 10:21:02 -0400 |
| commit | dedc531adc03590c020e2ad804b14fb8304e9825 (patch) | |
| tree | 77ffe571748d984d4273a209c8a9f707ef4794c5 /js/inline-expanding.js | |
| parent | de524c64d91aa66438f071de4347e64f41141fc8 (diff) | |
Fix inline expanding issue with new styles
Diffstat (limited to 'js/inline-expanding.js')
| -rw-r--r-- | js/inline-expanding.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/inline-expanding.js b/js/inline-expanding.js index 4accafe8..04d9298f 100644 --- a/js/inline-expanding.js +++ b/js/inline-expanding.js @@ -25,6 +25,7 @@ onready(function(){ if (e.which == 2 || e.metaKey) return true; if (!this.dataset.src) { + this.parentNode.removeAttribute('style'); this.dataset.expanded = 'true'; this.dataset.src= this.childNodes[0].src; this.dataset.width = this.childNodes[0].style.width; @@ -39,6 +40,7 @@ onready(function(){ delete this.style.filter; } } else { + this.parentNode.style.width = (parseInt(this.dataset.width)+40)+'px'; this.childNodes[0].src = this.dataset.src; this.childNodes[0].style.width = this.dataset.width; this.childNodes[0].style.height = this.dataset.height; |
