comparison pidgin/themes/Template.html @ 32778:1c0d9e817dcc

New branch for GSoC2012 project: Gadu-Gadu protocol plugin improvements. This commit makes trunk usable again - tunning default theme to match legacy Pidgin look&feel.
author tomkiewicz@cpw.pidgin.im
date Sat, 19 May 2012 16:38:38 +0000
parents f789627c4f0d
children
comparison
equal deleted inserted replaced
32775:4acc5b98f143 32778:1c0d9e817dcc
284 var text = document.createTextNode(node.alt); 284 var text = document.createTextNode(node.alt);
285 a.appendChild(text); 285 a.appendChild(text);
286 node.parentNode.replaceChild(a, node); 286 node.parentNode.replaceChild(a, node);
287 } 287 }
288 288
289 //Align our chat to the bottom of the window. If true is passed, view will also be scrolled down 289 //If true is passed, view will be scrolled down
290 function alignChat(shouldScroll) { 290 function alignChat(shouldScroll) {
291 var windowHeight = window.innerHeight; 291 if (shouldScroll)
292 292 scrollToBottom();
293 if (windowHeight > 0) {
294 var contentElement = document.getElementById('Chat');
295 var heightDifference = (windowHeight - contentElement.offsetHeight);
296 if (heightDifference > 0) {
297 contentElement.style.position = 'relative';
298 contentElement.style.top = heightDifference + 'px';
299 } else {
300 contentElement.style.position = 'static';
301 }
302 }
303
304 if (shouldScroll) scrollToBottom();
305 } 293 }
306 294
307 window.onresize = function windowDidResize(){ 295 window.onresize = function windowDidResize(){
308 alignChat(true/*nearBottom()*/); //nearBottom buggy with inactive tabs 296 alignChat(true/*nearBottom()*/); //nearBottom buggy with inactive tabs
309 } 297 }
317 305
318 <style type="text/css"> 306 <style type="text/css">
319 .actionMessageUserName { display:none; } 307 .actionMessageUserName { display:none; }
320 .actionMessageBody:before { content:"*"; } 308 .actionMessageBody:before { content:"*"; }
321 .actionMessageBody:after { content:"*"; } 309 .actionMessageBody:after { content:"*"; }
322 * { word-wrap:break-word; text-rendering: optimizelegibility; } 310 * { word-wrap:break-word }
323 img.scaledToFitImage { height: auto; max-width: 100%%; } 311 img.scaledToFitImage { height: auto; max-width: 100%%; }
324 </style> 312 </style>
325 313
326 <!-- This style is shared by all variants. !--> 314 <!-- This style is shared by all variants. !-->
327 <style id="baseStyle" type="text/css" media="screen,print"> 315 <style id="baseStyle" type="text/css" media="screen,print">