Skip to content

Commit

Permalink
Remove unnecessary width when applying fluid layout
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter authored May 27, 2021
1 parent 34036ee commit d232ad2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/optimizer/lib/transformers/ApplyLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ function apply(layout, width, height, node) {
// Do nothing here.
break;
case 'fluid':
if (width.isSet) {
styles = `width:${width.numeral}${width.unit};`;
}
styles += 'height:0;';
addClass(node, 'i-amphtml-layout-awaiting-size');
break;
Expand Down

0 comments on commit d232ad2

Please sign in to comment.