Skip to content

[BUG] Can't control width of a td/th from table #913

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

Closed
gfb-47 opened this issue Nov 29, 2021 · 1 comment · Fixed by #926
Closed

[BUG] Can't control width of a td/th from table #913

gfb-47 opened this issue Nov 29, 2021 · 1 comment · Fixed by #926
Assignees
Labels
bug Something isn't working

Comments

@gfb-47
Copy link

gfb-47 commented Nov 29, 2021

Describe the bug:
I have no control of the width on td/th from table tag, If I mess with the width on the css code below, nothing happens. Maybe this is a feature request idk.

HTML to reproduce the issue:

  Html(
      data: """
      <style>
	table, td, th {
		border: 1px solid black;
	}
	
	td, th {
		width: 1190px;
		padding: 10px;
	}
     </style>
  <table>
  <tr>
    <td>EmilEmilmilEmilEmilEmil</td>
  </tr>
</table>
          """,
),

Html widget configuration:

Expected behavior:

Screenshots:

Device details and Flutter/Dart/flutter_html versions:
Iphone 13 emulator
Flutter 2.5.3 • channel stable
flutter_html: ^2.2.0

Stacktrace/Logcat

Additional info:

A picture of a cute animal (not mandatory but encouraged)

@gfb-47 gfb-47 added the bug Something isn't working label Nov 29, 2021
@erickok
Copy link
Contributor

erickok commented Nov 30, 2021

Yes although we have basic support for weight/width via CSS now, it won't work on everything. Having said that, your request is totally reasonable and I will see if I can support this use-case soon. (Probably a fixed size on the table itself too.)

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

Successfully merging a pull request may close this issue.

2 participants