WebMemo autosize

Hi,

i have a WebMemo with Aligh alTop and WebTreeView with Align alTop

When i resize the form (smaller width) the autosize of the WebMemo does not care about WebTreeView and pass over it

I cannot reproduce this.
See attached project.

Project1.zip (9.5 KB)

Can you please check this

Project12.zip (1.8 MB)

I could reproduce this now and it is the content in combination with AutoSize that causes this.
We are investigating how we can best address this.

Thank you !

We traced & solved this issue. The next update will address this.

I’m having a problem with a Panel at the top, then a PageControl, then a splitter to adjust size of PageControl height vs. lower part (all aligned Top), then a Panel aligned to client.

The tabs on the PageControl end up hidden or zero height or ? They just disappear.

Is this possibly related?

I had to do a lot of juggling with many panels to make it work properly.

When you use WebMemo.AutoHeight = true and use alignment, that is potentially related and this issue should be solved in the next update.

Something is going wrong

If i put Autosize to TRUE at the begging and feed WebMemo then it works

If i Clear WebMemo and feed it with new text, Autosize does not work, it is going to minimum size

If i change the form width, the autosize works

How i trigger Autosize to change the height of WebMemo ?

We have seen an issue with autosize and programmatically updating the content of the TWebMemo.
We applied the improvement that this should work as expected with

WebMemo.BeginUpdate;
// apply changes here
WebMemo.EndUpdate;

This improvement will be in the next release.

i am already using

WebMemo1.BeginUpdate;

WebMemo1.EndUpdate;

but no change

If i change the browser width with the mouse, autostart fires

I said:

”This improvement will be in the next release.”

OK thank you !

WebMemo autosize problem still exists at version TMS WEB Core version v2.9.9.2

Do you effectively use

WebMemo.BeginUpdate;
// apply changes here
WebMemo.EndUpdate;

?
If so and the problem persists, please isolate and send a sample source project with which we can reproduce

i just sent you an email

thank you

It must be the code that tries to load this from a local file that doesn't work.
When I change the code to:

procedure TForm1.WebFormCreate(Sender: TObject);
var TN1:TTreeNode;
i: integer;
begin
Caption:='ÌçíÜò ÔæïâÜñáò & ÓÉÁ Å.Å.';
//
WebImageSlider1.ImageURLs.Clear;
WebImageSlider1.ImageURLs.Add('./images/intro/delphi.webp');
WebImageSlider1.ImageURLs.Add('./images/intro/tools.jpg');
WebImageSlider1.ImageURLs.Add('./images/intro/hr.jpg');
WebImageSlider1.ImageURLs.Add('./images/intro/clients.jpg');
WebImageSlider1.RefreshImages;
//
WebMemo1.BeginUpdate;
WebMemo1.Clear;
for i := 0 to 10 do
    webmemo1.Lines.Add('line '+i.ToString);
//WebMemo1.Lines.LoadFromFile('./images/intro/text.txt');
WebMemo1.EndUpdate;

//
WebTreeView1.BeginUpdate;
TN1:=WebTreeView1.Items.Add('Áñ÷éêÞ óåëßäá');
TN1:=WebTreeView1.Items.Add('ËïãéóìéêÜ áéïëéêþí ðÜñêùí');
WebTreeView1.Items.AddChild(TN1,'');
WebTreeView1.Items.AddChild(TN1,'Ëïãéóìéêü ãéá ëÞøç êáé åöáñìïãÞ åíôïëþí ôçëå-åðïðôåßáò/åëÝã÷ïõ Óôáèìþí ÁÐÅ');
WebTreeView1.Items.AddChild(TN1,'');
WebTreeView1.Items.AddChild(TN1,'');
TN1:=WebTreeView1.Items.Add('Ôá÷ýôçôá áíÝìïõ');
TN1:=WebTreeView1.Items.Add('Äéá÷åßñéóç åêäçëþóåùí');
WebTreeView1.EndUpdate;
end;

it works as expected

No, i am afraid not !

your code is working because your lines are very short !

please add long lines, so the word wrap works and break to a new line

I think then you will see the problem

we have discuss it again, that the problem can not be seen with small lines

If you do not include your TXT file you load, I cannot guess how long your lines are!

Same situation WITH wordwrapping!