Bugs on visual elements

Hi, with latest release we find some visual bugs:

  1. With THTMLabel when I update HTMLText:
    If I set HTMLLabel1.Autosizing = True and I update HTMLText at runtime, the text is trunced because in the code of the component, when Autosizing = true and csDesigning o in csLoading NOT IN ComponentState, property Autosizing become false.
    I attach a shot that show the problem.
  2. Text in TAdvGlowButton: ok in 2.8.1.4, wrong in 2.8.2.1
    Please see images.
    Thanks

1 Like

Insufficient information to reproduce.
Test on default THTMLabel:

procedure TForm1.Button1Click(Sender: TObject);
begin
  htmlabel1.AutoSizing := true;
  htmlabel1.htmltext.Text := 'This is a long text to see what is happening and visually check whether the label is vertically becoming larger';
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  htmlabel1.Transparent := false;
  htmlabel1.Color := clYellow;
end;

Result:

Insufficient information to reproduce.
Test on default TAdvGlowButton:
image

Hi Bruno,
in attachment there is a demo of bugs. Please read captions and test Change button press.
Thanks
DemoTMS.zip (2.2 MB)

1 Like
  1. We had to do a modification to font size handling. There was a small incorrect handling in previous versions as treating font sizes in GDI+ differs from GDI in high DPI. I suspect you set font size / button size based on the previous incorrect handling. When I set now the button font height to -17 instead of -18, the text no longer exceeds the button boundaries

  2. We applied an improvement for the runtime autosizing behavior that will be included in the next release