Good morning,
This is my code:
<p:dialog header="Directorio" widgetVar="dirDialog" modal="true" showEffect="explode" hideEffect="explode" resizable="false">
<p:outputPanel id="dirDetail" style="text-align:center; width: 150px; height: 150px;">
<a href="#{busquedaBean1.autor.directorio}" target="_blank" id="txtCopiar">#{busquedaBean1.autor.directorio}</a>
</p:outputPanel>
</p:dialog>
Dialog image:
I need that the text does not overpass the limit of the dialog, that is to say that the text instead of being overwritten, that is inside the dialog and if it is passed over it extends down to show the complete text.
EXAMPLE:
NEW CODE
I was investigating a bit and found a possible solution,
Code:
<p:dialog header="Directorio" widgetVar="dirDialog" modal="true" showEffect="explode" hideEffect="explode" resizable="false">
<p:outputPanel id="dirDetail" style="text-align:center;">
<a href="#{busquedaBean1.autor.directorio}" target="_blank" id="txtCopiar">#{busquedaBean1.autor.directorio}</a>
</p:outputPanel>
</p:dialog>
The dialog as it is presented in the code is self responsive therefore it will be adjusted depending on the number of characters.
but some computers have zoom in their browsers, so it looks very large and over the screen.
I was thinking if instead of self-adjusting to the sides it would self-adjust down.