Example #1
0
 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);
 }
Example #2
0
 public void setWidgetTitleAlignment(double align)
 {
     if (widgetTitleContainer != null)
     {
         widgetTitleContainer.setAlignForIndex(0, align, 0.50);
     }
 }