Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@softexe

Description

@softexe
Issue body actions

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"> 
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.