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

Border impacts text layout #86

Open
wokalski opened this issue Mar 13, 2019 · 0 comments
Open

Border impacts text layout #86

wokalski opened this issue Mar 13, 2019 · 0 comments
Labels
bug Something isn't working macOS macOS renderer

Comments

@wokalski
Copy link
Member

wokalski commented Mar 13, 2019

Sample component which shows the issue.

let app = (~children as _: list(unit), ()) =>
  Brisk.Layout.(
    <view
      style=[
        width(100.),
        height(120.),
      ]>
      <view style=[padding4(~top=20., ()), Brisk.Layout.flex(1.)]>
          <text
            style=[
              font(~size=13., ()),
              lineBreak(`TruncateTail),
              /* Remove the next line to reproduce the issue/observe the changes */
              border(~width=1., ~color=Color.hex("#000000"), ()),
              color(Color.hex("#000000")),
            ]
            value="Anonononother another another another"
          />
        <text
          style=Brisk.Layout.[
            color(Color.hex("#888888")),
            border(~width=1., ~color=Color.hex("#000000"), ()),
          ]
          value="Long Long Long Long string"
        />
      </view>
    </view>
  );
@wokalski wokalski added the bug Something isn't working label Mar 13, 2019
@wokalski wokalski changed the title Border impacts layout Border impacts text layout Mar 13, 2019
@wokalski wokalski added the macOS macOS renderer label Mar 13, 2019
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

1 participant