Welcome Guest Search | Active Topics | Sign In | Register

margin-bottom not working since EO v20 Options
PS
Posted: Wednesday, April 1, 2020 5:49:26 AM
Rank: Advanced Member
Groups: Member

Joined: 10/24/2018
Posts: 97
We have found an issue where margin-bottom is not being correctly applied since EO v20.
After digging further into the issue we found that this issue reproduces in Chromium 77.0.3865.120, we downloaded the chrome-win.zip build from https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/681087/ in order to verify that.

The reproducible example is as follows:

Quote:

using System;
using System.Windows.Forms;

using EO.WebBrowser;
using EO.WinForm;

namespace EOMarginBug
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(CreateForm());
}

private static Form CreateForm()
{
var form = new Form
{
Size = new System.Drawing.Size(1280, 1024)
};

var webView = new WebView();
webView.LoadHtml(
@"<!DOCTYPE html>
<html>
<body>
<div>
<span style='display: block; height: 100%'>
<div style='margin-bottom: 15px'>test</div>
</span>
test
</div>
</body>
</html>"
);

var webControl = new WebControl
{
Dock = DockStyle.Fill,
WebView = webView
};

form.Controls.Add(webControl);

return form;
}
}
}


When running this code one should see a 15px margin between the two lines with 'test', but instead no additional margin is applied. It works as intended in all other browsers, for example Firefox, Edge (Chromium) and Chrome.
eo_support
Posted: Wednesday, April 1, 2020 4:02:46 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thanks for letting us know. Because hundreds of changes are being submitted to Chromium daily, we won't be able to cherry pick fix for one issue and apply it to our codebase. So for this kind of issue we usually wait until we sync with Chromium's code base again. We are hoping we can refresh our Chromium codebase in the summer.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.