ArthurHub / ArthurHub/HTML-Renderer

Linux/Mono image from code has the incorrect size till window resize (without styles nor "width" attribute in image tag)

Open
#204 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
1.4k
Forks
550
Avg merge
14d 9h
Merged PRs (30d)
1

Description

Any chance to fix?

Screenshot with issue.

![изображение](https://github.com/ArthurHub/HTML-Renderer/assets/7357924/a2f0084d-6c9e-4854-b25a-38a227356940)

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

![изображение](https://github.com/ArthurHub/HTML-Renderer/assets/7357924/9623874d-c91d-4187-8335-cc4b1c33da1e)

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)

Keyword

1. Подсказка по
Ctrl+пробел выводит список всех доступных имен.


first screenshot


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




3. Подсказка по "точке". Если после имени
была нажата точка, то выдается список его членов.



4. Подсказка параметров функций


```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.