Serg Posted August 31, 2018 Share Posted August 31, 2018 Почему то не работает : procedure TMainForm.UniFormReady(Sender: TObject); begin PHOTO.JSInterface.JSCode('MainForm.PHOTO.setStyle("max-width", "450px");'); end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 31, 2018 Share Posted August 31, 2018 Добрый вечер, Попробуйте: PHOTO.JSInterface.JSCode(#1'.el.down("img").setStyle("max-width", "450px");'); Quote Link to comment Share on other sites More sharing options...
Serg Posted August 31, 2018 Author Share Posted August 31, 2018 Добрый вечер! Спасибо, работает. Но сбивается Proportional... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 31, 2018 Share Posted August 31, 2018 PHOTO.JSInterface.JSCode(#1'.el.down("img").setStyle("height", "auto");'); PHOTO.JSInterface.JSCode(#1'.el.down("img").setStyle("max-width", "450px");'); Quote Link to comment Share on other sites More sharing options...
Serg Posted August 31, 2018 Author Share Posted August 31, 2018 Спасибо большое! 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.