Hi All,
I need some help with getting a p-table with paginator to display correctly.
I have a div with a fixed height of 400px. Because I'm using the paginator with the table I need to supply a [rows] parameter which I do [rows]="5". This fits the height well in normal circumstances.
I'm allowing users to increase or decrease the global font size to make the components "smaller" or "larger" same as the PrimeNG templates do.
When the font-size is set smaller the table no longer fills the height of the container. 5 rows are shown with blank space before the paginator at the bottom.
I was hoping that the table would adjust the number of rows so that is still fills the available height.Vice versa when the font is too high the table overflows the container as it still retains 5 rows rather than dropping down to a smaller number.
Table Height
UI Components for Angular
Jump to
- JavaServer Faces
- ↳ PrimeFaces
- ↳ Extensions
- Angular
- ↳ PrimeNG
- React
- ↳ PrimeReact
- Vue
- ↳ PrimeVue
- PrimeBlocks
- ↳ PrimeBlocks for PrimeNG
- ↳ PrimeBlocks for PrimeVue
- ↳ PrimeBlocks for PrimeReact
- ↳ PrimeBlocks for PrimeFaces
- Theme Designer
- ↳ PrimeFaces Theme Designer API
- ↳ PrimeNG Theme Designer API
- ↳ PrimeReact Theme Designer API
- ↳ PrimeVue Theme Designer API
- UI Kit
- ↳ Figma
- Add-Ons
- ↳ PrimeFlex
- ↳ PrimeIcons
- PrimeUI
- ↳ PrimeUI
- Misc
- ↳ Made with Prime
- ↳ Spanish
- Premium Layouts and Themes
- ↳ Freya
- ↳ Freya - PrimeFaces
- ↳ Freya - PrimeNG
- ↳ Freya - PrimeVue
- ↳ Freya - PrimeReact
- ↳ Rain
- ↳ Rain - PrimeFaces
- ↳ Diamond
- ↳ Diamond - PrimeFaces
- ↳ Diamond - PrimeNG
- ↳ Diamond - PrimeVue
- ↳ Diamond - PrimeReact
- ↳ Pandora
- ↳ Pandora - PrimeFaces
- ↳ Siberia
- ↳ Siberia - PrimeFaces
- ↳ Mirage
- ↳ Mirage - PrimeFaces
- ↳ Mirage - PrimeNG
- ↳ Prestige
- ↳ Prestige - PrimeFaces
- ↳ Prestige - PrimeNG
- ↳ Prestige - PrimeVue
- ↳ Sapphire
- ↳ Sapphire - PrimeFaces
- ↳ Sapphire - PrimeNG
- ↳ Sapphire - PrimeReact
- ↳ Sapphire - PrimeVue
- ↳ Roma
- ↳ Roma - PrimeFaces
- ↳ Roma - PrimeNG
- ↳ Roma - PrimeReact
- ↳ Roma - PrimeVue
- ↳ Babylon
- ↳ Babylon - PrimeFaces
- ↳ Babylon - PrimeNG
- ↳ Babylon - PrimeReact
- ↳ Babylon - PrimeVue
- ↳ Olympia
- ↳ Olympia - PrimeFaces
- ↳ Olympia - PrimeNG
- ↳ Ecuador
- ↳ Ecuador - PrimeFaces
- ↳ Ecuador - PrimeNG
- ↳ Harmony
- ↳ Harmony - PrimeFaces
- ↳ Harmony - PrimeNG
- ↳ California
- ↳ California - PrimeFaces
- ↳ California - PrimeNG
- ↳ Serenity
- ↳ Serenity - PrimeFaces
- ↳ Serenity - PrimeNG
- ↳ Serenity - PrimeReact
- ↳ Serenity - PrimeVue
- ↳ Avalon
- ↳ Avalon - PrimeFaces
- ↳ Avalon - PrimeNG
- ↳ Avalon - PrimeReact
- ↳ Avalon - PrimeVue
- ↳ Apollo
- ↳ Apollo - PrimeFaces
- ↳ Apollo - PrimeNG
- ↳ Apollo - PrimeReact
- ↳ Apollo - PrimeVue
- ↳ Manhattan
- ↳ Manhattan - PrimeFaces
- ↳ Manhattan - PrimeNG
- ↳ Paradise
- ↳ Paradise - PrimeFaces
- ↳ Paradise - PrimeNG
- ↳ Barcelona
- ↳ Barcelona - PrimeFaces
- ↳ Barcelona - PrimeNG
- ↳ Atlantis
- ↳ Atlantis - PrimeFaces
- ↳ Atlantis - PrimeNG
- ↳ Atlantis - PrimeReact
- ↳ Atlantis - PrimeVue
- ↳ Morpheus
- ↳ Morpheus - PrimeFaces
- ↳ Morpheus - PrimeNG
- ↳ Verona
- ↳ Verona - PrimeFaces
- ↳ Verona - PrimeNG
- ↳ Verona - PrimeVue
- ↳ Poseidon
- ↳ Poseidon - PrimeFaces
- ↳ Poseidon - PrimeNG
- ↳ Poseidon - PrimeVue
- ↳ Ultima
- ↳ Ultima - PrimeFaces
- ↳ Ultima - PrimeNG
- ↳ Ultima - PrimeReact
- ↳ Ultima - PrimeVue
- ↳ Omega
- ↳ Omega - PrimeFaces
- ↳ Omega - PrimeNG
- ↳ Icarus
- ↳ Legacy
- ↳ Venture
- ↳ Olympos
- ↳ Atlas
- ↳ Titan
- ↳ Volt
- ↳ Adamantium
- ↳ Rio
- ↳ Ronin
- ↳ Spark
- ↳ Sentinel
- ↳ Modena
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests