2012-01-13 68 views
0

嘗試調整primefaces dataTable的分辨率時,分頁標題存在一些問題。我如何分類?我的屏幕截圖如下。一個全屏。 enter image description here並恢復原狀enter image description herePrimefaces dataTable分頁標題未調整

+0

即時通訊也在這個問題上,我的表太小,有三列。但標題比列寬度要長得多。 – Kushan 2012-01-13 05:53:29

+0

我把'style =「display:block; overflow-y:none; overflow-x:auto;」'用於dataTable,以獲得正確的屏幕分辨率,但不改變分頁標頭。 – NaaN 2012-01-13 09:14:57

+1

向PF傢伙報告bug。 – BalusC 2012-01-13 13:48:20

回答

0

該問題將討論herehere

我的表設置爲固定,並在表調整換行得到了合理的結果:

.ui-datatable thead th { 
    white-space: normal; 
    word-wrap: break-word; 
} 
.ui-datatable table { 
    table-layout:fixed 
} 

和設置width屬性爲p:column行。

1

我與此解決了它:

.ui-datatable-tablewrapper { 
    overflow-x: auto; 
} 

這個固定分頁的頁眉和頁腳,並且只在數據單元中滾動。

+0

謝謝!適合我! – 2015-02-11 14:38:04