TraitSetter.addBorders(viewportBlockArea, fobj.getCommonBorderPaddingBackground());
TraitSetter.addBackground(viewportBlockArea, fobj.getCommonBorderPaddingBackground());
- TraitSetter.addMargins(viewportBlockArea, null,
+ TraitSetter.addMargins(viewportBlockArea,
fobj.getCommonBorderPaddingBackground(),
fobj.getCommonMarginBlock());
curBlockArea = new Block();
// Must get dimensions from parent area
- Area parentArea = parentLM.getParentArea(curBlockArea);
+ //Area parentArea = parentLM.getParentArea(curBlockArea);
// set traits
TraitSetter.addBorders(curBlockArea,
fobj.getCommonBorderPaddingBackground());
TraitSetter.addBackground(curBlockArea,
fobj.getCommonBorderPaddingBackground());
- TraitSetter.addMargins(curBlockArea, parentArea,
+ TraitSetter.addMargins(curBlockArea,
fobj.getCommonBorderPaddingBackground(),
fobj.getCommonMarginBlock());
TraitSetter.addBreaks(curBlockArea,
* @param bpProps the border, padding and background properties
* @param marginProps the margin properties.
*/
- public static void addMargins(Area area, Area parentArea,
+ public static void addMargins(Area area,
CommonBorderPaddingBackground bpProps,
CommonMarginBlock marginProps) {
int startIndent = marginProps.startIndent.getValue();