webf icon indicating copy to clipboard operation
webf copied to clipboard

text layout parent can scroll, diff with webview behavior

Open bainian opened this issue 2 years ago • 1 comments

Affected version

main

No same issues found.

  • [X] Yes, I search all issues but not found.

Steps to Reproduce

refer to code.

Code example

<style type="text/css">

  .container3 {
    flex-direction: row;
    padding: 15px;
    background-color: red;
    display: flex;
  }

  .container4 {
    padding: 20px;
    margin: 10px;
    background: lightseagreen;
  }

</style>

<div class="container3">
  <div style="width: 30px;height:30px;background:aqua"></div>
  <div class="container4">
    <span>A splash screen was provided to Flutter, but this is deprecated. See flutter.dev.</span>
  </div>
</div>

Expected results

image

did not scroll.

Actual results

image

it can scroll to left.

bainian avatar Dec 05 '22 03:12 bainian

for flow layout, calculate minContentSize not right, cause the problem.

pba-cra avatar Dec 06 '22 15:12 pba-cra