@@ -178,13 +178,14 @@ public override LayoutResult Layout(LayoutContext layoutContext) {
178
178
FloatingHelper . AdjustFloatedBlockLayoutBox ( this , layoutBox , null , floatRendererAreas , floatPropertyValue ,
179
179
overflowX ) ;
180
180
}
181
+ float preMarginBorderPaddingWidth = layoutBox . GetWidth ( ) ;
181
182
UnitValue [ ] margins = GetMargins ( ) ;
182
183
ApplyMargins ( layoutBox , margins , false ) ;
183
184
Border [ ] borders = GetBorders ( ) ;
184
185
ApplyBorderBox ( layoutBox , borders , false ) ;
185
186
UnitValue [ ] paddings = GetPaddings ( ) ;
186
187
ApplyPaddings ( layoutBox , paddings , false ) ;
187
- MinMaxWidth countedMinMaxWidth = new MinMaxWidth ( area . GetBBox ( ) . GetWidth ( ) - layoutBox . GetWidth ( ) ) ;
188
+ MinMaxWidth countedMinMaxWidth = new MinMaxWidth ( preMarginBorderPaddingWidth - layoutBox . GetWidth ( ) ) ;
188
189
AbstractWidthHandler widthHandler ;
189
190
if ( noSoftWrap ) {
190
191
widthHandler = new SumSumWidthHandler ( countedMinMaxWidth ) ;
@@ -888,7 +889,7 @@ public override void Draw(DrawContext drawContext) {
888
889
if ( horizontalScaling != null && horizontalScaling != 1 ) {
889
890
canvas . SetHorizontalScaling ( ( float ) horizontalScaling * 100 ) ;
890
891
}
891
- GlyphLine . IGlyphLineFilter filter = new _IGlyphLineFilter_953 ( ) ;
892
+ GlyphLine . IGlyphLineFilter filter = new _IGlyphLineFilter_954 ( ) ;
892
893
bool appearanceStreamLayout = true . Equals ( GetPropertyAsBoolean ( Property . APPEARANCE_STREAM_LAYOUT ) ) ;
893
894
if ( GetReversedRanges ( ) != null ) {
894
895
bool writeReversedChars = ! appearanceStreamLayout ;
@@ -950,8 +951,8 @@ public override void Draw(DrawContext drawContext) {
950
951
}
951
952
}
952
953
953
- private sealed class _IGlyphLineFilter_953 : GlyphLine . IGlyphLineFilter {
954
- public _IGlyphLineFilter_953 ( ) {
954
+ private sealed class _IGlyphLineFilter_954 : GlyphLine . IGlyphLineFilter {
955
+ public _IGlyphLineFilter_954 ( ) {
955
956
}
956
957
957
958
public bool Accept ( Glyph glyph ) {
0 commit comments