Jump to content
uniGUI Discussion Forums
Sign in to follow this  
Serg

UniImage max-width

Recommended Posts

Почему то не работает  : 

 

procedure TMainForm.UniFormReady(Sender: TObject);
begin
PHOTO.JSInterface.JSCode('MainForm.PHOTO.setStyle("max-width", "450px");');
end;

Share this post


Link to post
Share on other sites

Добрый вечер,

 

Попробуйте:

PHOTO.JSInterface.JSCode(#1'.el.down("img").setStyle("max-width", "450px");');

Share this post


Link to post
Share on other sites

Добрый вечер! Спасибо, работает.

 

Но сбивается Proportional...

Share this post


Link to post
Share on other sites

PHOTO.JSInterface.JSCode(#1'.el.down("img").setStyle("height", "auto");');
PHOTO.JSInterface.JSCode(#1'.el.down("img").setStyle("max-width", "450px");');

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×