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

[flexGrow]="1" [maxWidth]="30" - maxWidth applied only in header cell; #595

Open
webmatrixxxl opened this issue Mar 13, 2017 · 5 comments
Open

Comments

@webmatrixxxl
Copy link

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior
[flexGrow]="1" [maxWidth]="30" - maxWidth applied only in header cell

Expected behavior
[maxWidth] should be applied only all column cells

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Table version: 0.6.3
  • Angular version: 2.4.8
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]
@Yura13
Copy link

Yura13 commented Apr 10, 2017

The same situation when set [scrollbarH]="true" for table and [maxWidth]="100" for column (table have [columnMode]="'force'").

@katestearns-suplari
Copy link

Any updates to this? I'm only able to change the header Column with maxWidth on my table. I am using column and row templates.

@eyev
Copy link

eyev commented Sep 15, 2017

Just want to let you know, I was able to get around this bug by applying [maxWidth] and [width] to the column...

@DanielCaspers
Copy link

@eyev, I just tried your solution. It did not work for me. Also, I don't understand why that would have an effect as the API docs for width show a default value of 150.

Here are the specifics of my table. I've deleted all unrelated properties from my example here, including inner content of columns. I am using material theme, and added a border around the cells to clearly indicate the problem.

<ngx-datatable
        class="material"
	[columnMode]="'flex'"
	[draggable]="false"
	[headerHeight]="48"
	[rowHeight]="'auto'">

	<ngx-datatable-column
		[draggable]="false"
		[minWidth]="63"
		[resizeable]="false">
	</ngx-datatable-column>

	<ngx-datatable-column
		[draggable]="false"
		[flexGrow]="2"
		[resizeable]="false">
	</ngx-datatable-column>
	
	<!-- The column giving me grief -->
	<ngx-datatable-column
		[draggable]="false"
		[flexGrow]="4"
		[maxWidth]="400"
		[resizeable]="false">
	</ngx-datatable-column>
	
	<ngx-datatable-column
		[draggable]="false"
		[flexGrow]="1"
		[resizeable]="false">
	</ngx-datatable-column>
	
	<ngx-datatable-column
		[draggable]="false"
		[flexGrow]="1"
		[resizeable]="false">
	</ngx-datatable-column>
</ngx-datatable>

image

@ctriana89
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants