|
From: <j-...@us...> - 2011-11-03 20:02:20
|
Revision: 497
http://openautomation.svn.sourceforge.net/openautomation/?rev=497&view=rev
Author: j-n-k
Date: 2011-11-03 20:02:14 +0000 (Thu, 03 Nov 2011)
Log Message:
-----------
Fix bug 3175343 part 1 (default width 100% of widget space)
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-02 19:44:15 UTC (rev 496)
+++ CometVisu/trunk/visu/designs/structure_pure.js 2011-11-03 20:02:14 UTC (rev 497)
@@ -685,7 +685,11 @@
ret_val.addClass( 'iframe' );
ret_val.append( '<div class="label">' + page.textContent + '</div>' );
var style = '';
- if( $p.attr('width' ) ) style += 'width:' + $p.attr('width' ) + ';';
+ if( $p.attr('width' ) ) {
+ style += 'width:' + $p.attr('width' ) + ';';
+ } else { // default width is 100% of widget space (fix bug #3175343 part 1)
+ style += 'width: 100%;';
+ }
if( $p.attr('height') ) style += 'height:' + $p.attr('height') + ';';
if( $p.attr('frameborder') == "false" ) style += 'border: 0px ;';
if( $p.attr('background') ) style += 'background-color:' + $p.attr('background') + ';';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|