Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Sometimes Text component renders either all or none lines of multiline text #87

Open
wokalski opened this issue Mar 13, 2019 · 1 comment
Labels
bug Something isn't working macOS macOS renderer

Comments

@wokalski
Copy link
Member

let examples = (~children as _: list(unit), ()) =>
  Brisk.Layout.(
    <view
      style=[
        width(100.),
        /* If you change height to 80. you'll observe
         * that all of the sudden two lines of the second text are rendered
         * With 79, I'd expect to see at least one line of the second text component
         */
        height(79.),
      ]>
      <view style=[padding4(~top=20., ())]>
        <text
          style=[
            background(Color.rgb(0, 255, 0)),
            font(~size=13., ()),
            lineBreak(`TruncateTail),
            color(Color.hex("#000000")),
          ]
          value="Anonononother another another"
        />
        <text
          style=Brisk.Layout.[
            lineBreak(`TruncateTail),
            background(Color.rgb(255, 0, 0)),
            color(Color.hex("#888888")),
          ]
          value="Long Long Long Long string"
        />
      </view>
    </view>
  );
@rauanmayemir
Copy link
Member

I thought multiline was the bane of all cocoa developers? 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS macOS renderer
Projects
None yet
Development

No branches or pull requests

2 participants