Icon View Incident Report

Minor Minor
Reported By: Matthew Jones
Reported On: 5/31/2013
For: Version 1.02 Build 1
# 3849 Auto-Sizing of Right-Aligned Labels and Links Not Updating Control Width Properly

Take a TLabel, call it lblAlign, put it on a form with a timer and a button.

Add the following code to the timer.

The right edge of the label is aligned to the right edge of the button.

Now change the label's alignment to taRightJustify and run it again. The label is all over the place, and certainly not aligned.

Not sure what is happening here, but suffice to say the workaround is simply to align it left.

lblAlign.Caption := FloatToStr(Random * 1000);
lblAlign.Left := Button1.Left + button1.Width - lblAlign.Width;

Comments Comments
The issue was that the label width was not updating properly during auto-sizing, so that the above calculation would be incorrect.

Resolution Resolution
Fixed Problem on 6/4/2013 in version 1.02 build 2

Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial