Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
11748 Visualizações

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

Avatar
Cancelar

Please be specific.

Melhor resposta

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
Cancelar

Thanks

Publicações relacionadas Respostas Visualizações Atividade
0
mai. 24
1665
2
mai. 24
3322
3
fev. 24
2850
2
fev. 24
2525
2
nov. 22
5681