Jump to content

Bug in TUniCanvas when change it size


Tokay

Recommended Posts

Actually TUniCanvas  has a bug. When change it size on the front, back shadow images does not changed and therefor TUniCanvas works wrong.

This is fix for an issue, please add it to the sources:
 

  if (not IsLoading) and ((pw <> Width) or (ph <> Height)) then
  begin
    SetDomStyleProperty('clip', GetClipStr );
    JSCall('setWH', [Width, Height]);
    //
    FPngImage.SetSize(AWidth, AHeight);
    FBitmap.SetSize(AWidth, AHeight);
    //
  end;

 

Link to comment
Share on other sites

  • Tokay changed the title to Bug in TUniCanvas when change it size

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...