Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
softexe opened this issue Feb 8, 2024 · 0 comments

Comments

@softexe
Copy link

softexe commented Feb 8, 2024

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

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

<h1>Анализ Кода Времени Разработки (Intellisense)</h1>


<p><a href="!Keyword_and_words">Keyword</a></p>

<p>1. Подсказка по 
Ctrl+пробел выводит список всех доступных имен. </p>
<p><img src="/images/intellisense1.png" alt="first screenshot" /></p>

<p>
2. Подсказка по Shift+пробел выводит 
список всех доступных имен из текущего модуля. Также добавился комментарий /// 
который позволяет связать подсказку с элементом программы (процедура, функция, 
переменная) </span></p>
<p><img src="../images/intellisense2.png"> 
</p>
<p>3. Подсказка по &quot;точке&quot;. Если после имени 
была нажата точка, то выдается список его членов.</p>
<p><img src="../images/intellisense3.png" border="0"></p> 
4. Подсказка параметров функций 
<p>
<img src="../images/intellisense4.png"> 
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant