Skip to content

Fractional element dimensions not properly rendered #438

Closed
@mwl4

Description

@mwl4

Hi,

I am having issue with fractional element dimensions.

Reproduction:

  1. Launch Samples/demo.exe
  2. Go to Sandbox tab
  3. Paste code on the left:
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
  1. Paste code on the right:
div {
 width: 100px;
 height: 9.4px;
 background-color: red;
}
  1. See unexpected white horizontal lines.

image

Expected result: (chrome)

image

https://jsfiddle.net/mfv29rxt/

You might wonder, why I need fractional dimensions. In most of the time you want to achieve scalable user interface, so you use hv or dp units. Then fractional dimensions are calculated by library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    layoutLayout engine issues and enhancementsrendering

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions