/** * Created by guopeng on 16/7/5. * 左侧边距块 (出于最小化rerender考虑) */ import * as React from "react"; import {observer} from "mobx-react/index"; import PaddingBlock from "./MarginBlock"; import {DesignerHost} from "../../DesignerHost"; @observer class BottomMarginBlock extends PaddingBlock { constructor(props, context){ super(props, context); this.direction = "vertical"; } render(): JSX.Element { let rootStyle = this.getStyles().root; const zoom = this.reportDesigner.zoom; rootStyle.top = this.reportDesigner.bandBottom * zoom; rootStyle.height = this.reportDesigner.report.bottomMargin.pixels * this.reportDesigner.zoom; return(
); } } export default BottomMarginBlock;