Telegram_2022-03-03T14

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2022 > 03 > 03 >

Telegram_2022-03-03T14

Telegram link

 

2022-03-03T14:18:59

 

Autosize in the web doesn't work like VCL. There is no Windows API to tell you how large is the text in the canvas before you applying a CSS style. Things work differently.

 

It's just common sense. If you want your label to extend to occupy the whole container space, there is no logic in expecting it to adjust to the size of the text

 


 

Telegram link

 

2022-03-03T14:54:49

 

I agree with things working differently, but extending that to common sense is... Senseless

 

As I'd the absurd example you gave.

 

The whole container space would be alClient, and would not make sense

 

The examples I gave are real life ones used in production code, and have all the sense

 

If CSS and HTML can't handle it, well, it's one of the many limitations we developers just accept