Skip to content

column header names often have ellipses when not needed v3.0.0-rc.16-9c495da #2305

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

Open
ghost opened this issue Dec 9, 2014 · 11 comments
Open
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Dec 9, 2014

I have several column headers (using field/name in ColumnDef) in v3.0.0-rc.16-9c495da - 2014-12-05.
The header looks like:
2014-12-09-092931-centricity business - internet explorer
but if I popup the column menu, you can see that the headers are actually fully displayed:
2014-12-09-092946-centricity business - internet explorer

@c0bra
Copy link
Contributor

c0bra commented Dec 9, 2014

A couple questions:

  1. Which browser is this in? Does this happen the same on different browsers?
  2. If you inspect the column header element and manually increase its width by 1px, does the ellipsis go away?

@ghost
Copy link
Author

ghost commented Dec 9, 2014

I am running in IE11 and cannot try another browser since we currently have a dependency on a .Net control.
The column in question was originally 134px wide. In the IE debugger, I had to increase it to 147px to make the ellipses go away! Notice all the space to the right!

[cid:image001.png@01D013A4.E465DE70]

The active layout is:

[cid:image002.png@01D013A4.E465DE70]

/steve

Stephen R. Alpert, PhD
Principal Technical Architect
GE Healthcare
Clinical Business Solutions

T +1 617 519 2216
F +1 617 519 2625
E steve.alpert@ge.comblocked::mailto:steve.alpert@ge.com
www.gehealthcare.comhttp://www.gehealthcare.com

     GE imagination at work

From: Brian Hann [mailto:notifications@github.com]
Sent: Tuesday, December 09, 2014 11:06 AM
To: angular-ui/ng-grid
Cc: Alpert, Stephen R (GE Healthcare)
Subject: Re: [ng-grid] column header names often have ellipses when not needed v3.0.0-rc.16-9c495da (#2305)

A couple questions:

  1. Which browser is this in? Does this happen the same on different browsers?
  2. If you inspect the column header element and manually increase its width by 1px, does the ellipsis go away?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2305#issuecomment-66306526.

@c0bra
Copy link
Contributor

c0bra commented Dec 9, 2014

@SteveRa FYI your image attachments didn't come through to github.

@ghost
Copy link
Author

ghost commented Dec 9, 2014

Here is a view of the field I was looking at:
2014-12-09-113626-centricity business - internet explorer
The generated code:
2014-12-09-113936-f12

@c0bra
Copy link
Contributor

c0bra commented Dec 9, 2014

I can't reproduce on in the column resizing tutorial in Chrome, but I do see it in IE11. Looks like it's particular to that browser.

It's possibly because the text-overflow property is on the .ui-grid-contents class and the actual text is ending up in a <span ng-binding> element. I can't get it to "ellipsize" properly by moving the styles around manually, however.

@PaulL1 PaulL1 added this to the 3.0 milestone Dec 10, 2014
@ghost
Copy link
Author

ghost commented Feb 25, 2015

I'm still encountering this in the 3.0 rc19 release. Here it is in IE-11
2015-02-25-164423-d__code_angular_tabs_index html - internet explorer
and here it is in Chrome...
2015-02-25-164434-index html

@c0bra c0bra modified the milestones: 3.1, 3.0 Apr 16, 2015
@c0bra c0bra self-assigned this Apr 16, 2015
@c0bra c0bra removed the type: bug label Apr 16, 2015
@c0bra
Copy link
Contributor

c0bra commented Apr 16, 2015

Pushing this to 3.1 and removing bug flag as I think it's a browser issue.

@wattsbn
Copy link
Contributor

wattsbn commented May 7, 2015

This is actually a really annoying bug. It may be IE's fault, but I think we can make it less likely to happen.

The problem is actually with the sort icon and not with the actual text of the header. If there isn't enough room for the sort icon, then IE will show an ellipsis. This will happen even if the column is not sortable because ui-grid only hides it.

Adding the following to ui-grid.css will fix this situation:

.ui-grid-invisible {
    display: none;
}

It would be nice if you could at least add this one line for 3.0 instead of waiting until 3.1

@ghost
Copy link

ghost commented Apr 4, 2016

This issue still exists, for me it is Firefox...ellipsis show up in header text when not needed..while Chrome it looks fine, .with overflow: initial, it does work , but I am checking if a ui grid version could help, thanks!

@bharatpatil
Copy link

bharatpatil commented Sep 8, 2016

I'm also facing this in Firefox 48.0.1. (Mac/Windows)
However I'm facing it when text is aligned to the right in column headers.

As from below screenshot you can see, even if there is a enough space to display full column name, it is showing ellipsis.

image

@mportuga
Copy link
Member

Okay, after reviewing the comments in this bug, I believe that the reason for the overflow is a padding on the header column which is there to ensure there is always enough space for both the sort icon and column menu dropdown. It can be worked around with the help of CSS and I believe the solution provided by @wattsbn will work. If I get a chance I will do it, but PRs are welcome.

@mportuga mportuga assigned mportuga and unassigned c0bra Mar 26, 2018
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

5 participants