Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
11579 Tampilan

I want to use the power of CSS Flexbox when creating a PDF report. How to apply CSS Flexbox in QWeb? 

Avatar
Buang

Please be specific.

Jawaban Terbai

You need to use an older syntax because the reporting system is using QtWebKit 2.3 (it's 10 years old).

Source

.foo {
    display: -webkit-box; /* wkhtmltopdf uses this one */
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center; /* wkhtmltopdf uses this one */
    -webkit-justify-content: center;
            justify-content: center;
}

There should be a way to use the new syntax on Odoo but I can't help you, if you find a solution let me know.

Avatar
Buang

Thanks

Post Terkait Replies Tampilan Aktivitas
0
Mei 24
1604
2
Mei 24
3223
3
Feb 24
2768
2
Feb 24
2479
2
Nov 22
5613