Jump to content

Set Position Picture on UniImage to Right Bottom


Point

Recommended Posts

Hello,

May be anyone can help me, how to set position picture on uniImage to "Right Bottom" Position.

i try with this code but still not work :

procedure TMyForm.UniFormReady(Sender: TObject);
begin
  //UniImage1.JSInterface.JSCode(#1'.el.query("img")[0].style.alignContent="flex-end";');
  UniImage1.JSInterface.JSCode(#1'.el.query("img")[0].style.backgroundPosition="right bottom";');
end;

Thanks in advance.

Link to comment
Share on other sites

7 minutes ago, Point said:

pict position.7z 45.54 kB · 0 downloads

Try this approach:

procedure TMainForm.UniFormReady(Sender: TObject);
begin
  UniImage1.JSInterface.JSCode(#1'.el.query("img")[0].style.position="absolute";');
  UniImage1.JSInterface.JSCode(#1'.el.query("img")[0].style.right="0px";');
  UniImage1.JSInterface.JSCode(#1'.el.query("img")[0].style.bottom="0px";');
end;

 

Link to comment
Share on other sites

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...