Point Posted January 20, 2022 Share Posted January 20, 2022 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 20, 2022 Share Posted January 20, 2022 Hello, Do you have a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
Point Posted January 20, 2022 Author Share Posted January 20, 2022 Here it is pict position.7z Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 20, 2022 Share Posted January 20, 2022 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; Quote Link to comment Share on other sites More sharing options...
Point Posted January 20, 2022 Author Share Posted January 20, 2022 work, many thanks mr sherzord. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.