ArthurHub / ArthurHub/HTML-Renderer
Linux/Mono image from code has the incorrect size till window resize (without styles nor "width" attribute in image tag)
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 550
- Avg merge
- 14d 9h
- Merged PRs (30d)
- 1
Description
Any chance to fix?
Screenshot with issue.

If I have changed app window size the images are appeared with real size.

PascalABC.NET code for
```pascal
procedure PABCHelpForm.contentPanel_ImageLoad(sender: Object; e: TheArtOfDev.HtmlRenderer.Core.Entities.HtmlImageLoadEventArgs);
begin
e.Handled := false;
//внешний ресурс
if(e.Src.StartsWith('http')) then Exit;
var uri := rootUri + fixUri(e.Src);
if(FileExists(uri)) then
begin
var img := Image.FromFile(uri);
//img
e.Attributes.Item['src'] := uri;
//e.Attributes.Item['width'] := IntToStr(img.Width);
//e.Attributes.Item['height'] := IntToStr(img.Height);
e.Callback(img);
e.Handled := true;
end;
end;
```
Html code for
```html
Анализ Кода Времени Разработки (Intellisense)
1. Подсказка по
Ctrl+пробел выводит список всех доступных имен.

2. Подсказка по Shift+пробел выводит
список всех доступных имен из текущего модуля. Также добавился комментарий ///
который позволяет связать подсказку с элементом программы (процедура, функция,
переменная)
3. Подсказка по "точке". Если после имени
была нажата точка, то выдается список его членов.

4. Подсказка параметров функций
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the PascalABC.NET contentPanel_ImageLoad callback and the supplied HTML image examples, then trace the Mono image loading and initial layout path. Reproduce the issue before and after resizing the window; done means images without explicit width or height display at their real size on the first render.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100