File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
itext/itext.layout/itext/layout/renderer Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,13 @@ public override LayoutResult Layout(LayoutContext layoutContext) {
103103 float [ ] paddings = GetPaddings ( ) ;
104104 ApplyBordersPaddingsMargins ( parentBBox , borders , paddings ) ;
105105 if ( blockWidth != null && ( blockWidth < parentBBox . GetWidth ( ) || isPositioned || rotation != null ) ) {
106- parentBBox . SetWidth ( ( float ) blockWidth ) ;
106+ // TODO DEVSIX-1174
107+ UnitValue widthVal = this . GetProperty < UnitValue > ( Property . WIDTH ) ;
108+ if ( widthVal != null && widthVal . IsPercentValue ( ) && widthVal . GetValue ( ) == 100 ) {
109+ }
110+ else {
111+ parentBBox . SetWidth ( ( float ) blockWidth ) ;
112+ }
107113 }
108114 float ? blockMaxHeight = RetrieveMaxHeight ( ) ;
109115 if ( ! IsFixedLayout ( ) && null != blockMaxHeight && blockMaxHeight < parentBBox . GetHeight ( ) && ! true . Equals (
Original file line number Diff line number Diff line change 1- 69920942204fdf9be8055cb6381af0d11e5c56e4
1+ f6b179f34ff30f1bf9dcc1ad26fa3b97a2317ba3
You can’t perform that action at this time.
0 commit comments