|
From: <j-...@us...> - 2011-11-16 13:41:36
|
Revision: 520
http://openautomation.svn.sourceforge.net/openautomation/?rev=520&view=rev
Author: j-n-k
Date: 2011-11-16 13:41:25 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
Fixed default width of image too 100% (same behaviour as iframe)
Modified Paths:
--------------
CometVisu/trunk/visu/designs/structure_pure.js
Modified: CometVisu/trunk/visu/designs/structure_pure.js
===================================================================
--- CometVisu/trunk/visu/designs/structure_pure.js 2011-11-14 20:16:48 UTC (rev 519)
+++ CometVisu/trunk/visu/designs/structure_pure.js 2011-11-16 13:41:25 UTC (rev 520)
@@ -627,7 +627,11 @@
var labelElement = $p.find('label')[0];
ret_val.append( labelElement ? '<div class="label">' + labelElement.textContent + '</div>' : '' );
var style = '';
- if( $p.attr('width' ) ) style += 'width:' + $p.attr('width' ) + ';';
+ if( $p.attr('width' ) ) {
+ style += 'width:' + $p.attr('width' ) + ';';
+ } else {
+ style += 'width: 100%';
+ }
if( $p.attr('height') ) style += 'height:' + $p.attr('height') + ';';
if( style != '' ) style = 'style="' + style + '"';
var actor = '<div class="actor"><img src="' +$p.attr('src') + '" ' + style + ' /></div>';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|