Skip to content

Commit

Permalink
T72585 cell shouldn't inherit width/height from column
Browse files Browse the repository at this point in the history
  • Loading branch information
greatyan committed Apr 8, 2014
1 parent 9f96690 commit 7922bc5
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -70,6 +70,15 @@ public Object getPropertyRelatedToContainer( Module module,
// Get property from the container of this cell. If the container
// has column, get property from column.

if ( "width".equals( prop.getName( ) )
|| "height".equals( prop.getName( ) ) )
{
// table cell shouldn't inherit size from column as:
// * height shouldn't be defined on column
// * width is not correct if column span is not equals to 1
return super.getPropertyRelatedToContainer( module, cell, prop );
}

DesignElement e = cell.getContainer( );
while ( e != null )
{
Expand Down

0 comments on commit 7922bc5

Please sign in to comment.