primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Border around resizeable table headers not shoing in IE & FF

Open ottosson opened this issue 8 years ago • 7 comments

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

Current behavior When enabling pResizableColumn in table component the border around header columns disappear in Firefox and Internet Explorer 11. Works in Chrome.

Expected behavior Should still show border even if pResizableColumn is used.

Minimal reproduction of the problem with instructions https://www.primefaces.org/primeng/#/table/colresize

Please tell us about your environment: Windows 10

  • Angular version: 5.X 5.2.6

  • PrimeNG version: 5.X 5.2.0

  • 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 ] Internet explorer 11, Firefox.

ottosson avatar Mar 23 '18 16:03 ottosson

I can confirm the current behavior, that Borders are shown in Chrome, but not in Firefox or Internet Explorer.

Please tell us about your environment Windows 7 Enterprise SP1

  • Angular version: 5.X 5.2.9

  • PrimeNG version: 5.X 5.2.4

  • Browser Chrome 66.0.3359.81 (Beta) [works as expected] Firefox ESR 52.7.3, Firefox Dev Edition 60.0b10 Internet Explorer 11.0.57

stedel avatar Apr 09 '18 09:04 stedel

The Firefox dev tools are showing, that the background-clip property from .ui-resizable-column at https://github.com/primefaces/primeng/blob/master/src/app/components/table/table.css#L103 was presumably overriden by .ui-table .ui-table-tbody > tr > td https://github.com/primefaces/primeng/blob/master/src/assets/components/themes/_theme.scss#L622

I could fix the problem by applying a more specific selector:

.ui-table .ui-table-thead > tr > th.ui-resizable-column,
.ui-table .ui-table-tbody > tr > td.ui-resizable-column {
  background-clip: padding-box;
}

stedel avatar Apr 09 '18 11:04 stedel

+1

harshdevj avatar Apr 19 '18 07:04 harshdevj

This is fixed in recent releases.

cagataycivici avatar Aug 12 '18 08:08 cagataycivici

This is still an issue for me, using v6.1.2... Same problem as before, looks correct in Chrome bu not in IE and FF.

ottosson avatar Aug 28 '18 06:08 ottosson

This is still an issue for me, using v6.1.2

ghost avatar Sep 19 '18 11:09 ghost

This is still an issue for me, using PrimeNg v8 (non-LTE version). Also in the most current development version, There seems to be a rendering problem - but this time with the header only.

image

mattlocker avatar Aug 14 '20 05:08 mattlocker