Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
11876 Widoki

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

Awatar
Odrzuć

Please be specific.

Najlepsza odpowiedź

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.

Awatar
Odrzuć

Thanks

Powiązane posty Odpowiedzi Widoki Czynność
0
maj 24
1723
2
maj 24
3427
3
lut 24
2938
2
lut 24
2599
2
lis 22
5766