adium 5278:82cb0bb0ceb9: Patch from Detmud to add Retina Display...

commits at adium.im commits at adium.im
Sat Jan 26 13:36:44 UTC 2013


details:	http://hg.adium.im/adium/rev/82cb0bb0ceb9
revision:	5278:82cb0bb0ceb9
branch:		adium-1.6
author:		Robert Vehse
date:		Sat Jan 26 14:34:16 2013 +0100

Patch from Detmud to add Retina Display support for emoticons in the Message View. Fixes #16221.

diffs (21 lines):

diff -r 9dd05779e49a -r 82cb0bb0ceb9 Plugins/WebKit Message View/Template.html
--- a/Plugins/WebKit Message View/Template.html	Thu Jan 24 13:17:14 2013 +0100
+++ b/Plugins/WebKit Message View/Template.html	Sat Jan 26 14:34:16 2013 +0100
@@ -268,6 +268,8 @@
 			var img = document.createElement('img');
 			img.setAttribute('src', node.getAttribute('src'));
 			img.setAttribute('alt', node.firstChild.nodeValue);
+			img.setAttribute('width', node.getAttribute('width'));
+			img.setAttribute('height', node.getAttribute('height'));
 			img.className = node.className;
 			node.parentNode.replaceChild(img, node);
 		}
@@ -280,6 +282,8 @@
 			a.setAttribute('onclick', 'imageSwap(this, true)');
 			a.setAttribute('src', node.getAttribute('src'));
 			a.setAttribute('isEmoticon', true);
+			a.setAttribute('width', node.getAttribute('width'));
+			a.setAttribute('height', node.getAttribute('height'));
 			a.className = node.className;
 			var text = document.createTextNode(node.alt);
 			a.appendChild(text);




More information about the commits mailing list