public override void computeWidgetLayout(int widthConstraint) { if (alignWidget != null) { if (widthConstraint >= context.getWidthValue("120mm")) { alignWidget.setAlignForIndex(0, 0.50, 0.50); } else { alignWidget.setAlignForIndex(0, 0.50, (double)0); } } base.computeWidgetLayout(widthConstraint); }
public void setWidgetTitleAlignment(double align) { if (widgetTitleContainer != null) { widgetTitleContainer.setAlignForIndex(0, align, 0.50); } }