question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

columnMode flex resize not working

See original GitHub issue

I’m submitting a … (check one with “x”)

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

Current behavior when columnMode is set to flex, resizing the columns will not resize the rows columns

Expected behavior rows should also resize to the header column width

Reproduction of the problem can reproduce on the demo site: http://swimlane.github.io/ngx-datatable/#flex

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

Please tell us about your environment: windows 10

  • Table version: 0.8.x 10.0.5

  • Angular version: 2.0.x 4.3.3

  • 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 ] Chrome (60.0.3112.90), Firefox (54.0.1), Edge, IE 11

but more likely all of them

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:13
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
pockata-ktcommented, Dec 19, 2017

@mishkolesnikov thank you so much for the workaround! Here’s actual code how to do it:

import { DatatableComponent, ColumnMode } from '@swimlane/ngx-datatable';
...
@ViewChild(DatatableComponent) ngxDatatable: DatatableComponent;

ngAfterViewInit() {
  this.ngxDatatable.columnMode = ColumnMode.force;
}
7reactions
amcdnlcommented, Aug 20, 2017

I just noticed this. I think the flex column distribution alog is kinda buggy. I’m wondering how many ppl actually use it, might be worth removing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When flexbox items wrap in column mode, container does not ...
Just a sidenote, but there's a bug in Chrome that causes a container with it's flow set to column wrap not to expand...
Read more >
When Column Mode Is 'Flex' Column Width Cannot Be Adjusted
Expected behavior The column width should be flex and should scale based on the flexGrow attribute not a fixed width. Reproduction of the...
Read more >
flex-direction - CSS: Cascading Style Sheets - MDN Web Docs
The flex-direction CSS property sets how flex items are placed in the flex container defining the main axis and the direction (normal or ......
Read more >
[Bug-416]Flex container not shrinking at runtime - Ignition
Further information: the container that doesn't shrink is a flex container in column mode. It contains two components: a label and an ...
Read more >
When flexbox items wrap in column mode, container does not ...
I am working on a nested flexbox layout which should work as follows: The outermost level ( ul#main ) is a horizontal list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found