Jump to content

How to fit image


t4ufiq

Recommended Posts

ide01.thumb.jpg.8acabddbdfe768c3f9623dc6dfccad71.jpg

on IDE it look all work like what i want, UniImage show everything. UniImage property: center, proportional, and stretch set to true

but when we run it and open on browser. UniImane fit the image height only, the image width is cropped

browser01.thumb.jpg.03235e451c316d2188c413129c9e22bf.jpg

how to make it appeared fit and proportionally like shown on IDE ??

 

Link to comment
Share on other sites

1 hour ago, Sherzod said:

Hello, 

Which build, browser are you using? 

Can you make a simple testcase for this? 

im using latest build 1.70.0.1485

simple test here : http://45.127.134.106:8077/

additional code only on each checkbox

Quote

procedure TMainForm.UniCheckBox1Change(Sender: TObject);
begin
  if UniCheckBox1.Checked then
    UniImage1.Center:=true
  else
    UniImage1.Center:=false;
end;

procedure TMainForm.UniCheckBox2Change(Sender: TObject);
begin
if UniCheckBox2.Checked then
    UniImage1.Proportional:=true
  else
    UniImage1.Proportional:=false;
end;

procedure TMainForm.UniCheckBox3Change(Sender: TObject);
begin
   if UniCheckBox3.Checked then
    UniImage1.Stretch:=true
  else
    UniImage1.Stretch:=false;
end;

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...