|
From: <ma...@us...> - 2012-06-01 21:53:54
|
Revision: 852
http://openautomation.svn.sourceforge.net/openautomation/?rev=852&view=rev
Author: mayerch
Date: 2012-06-01 21:53:48 +0000 (Fri, 01 Jun 2012)
Log Message:
-----------
Layout fix for Firefox
Modified Paths:
--------------
CometVisu/trunk/visu/lib/templateengine.js
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2012-06-01 17:14:34 UTC (rev 851)
+++ CometVisu/trunk/visu/lib/templateengine.js 2012-06-01 21:53:48 UTC (rev 852)
@@ -136,7 +136,7 @@
var uagent = navigator.userAgent.toLowerCase();
var widthNavbarLeft = $( '#navbarLeft' ).width();
var widthNavbarRight = $( '#navbarRight' ).width();
- var width = $( 'body' ).width() - widthNavbarLeft - widthNavbarRight;
+ var width = $( 'body' ).width() - widthNavbarLeft - widthNavbarRight - 1; // remove an additional pixel for Firefox
if (/(android|blackberry|iphone|ipod|series60|symbian|windows ce|palm)/i.test(uagent)) {
$( '#main' ).css( 'width', width );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|