i want to show a custom image with the upload button, but the image size is not used from the images dimension, and changing it with width/height to the images size of 61x22 does not solve the problem.
The shown image is much bigger than the image, some pixels more in with, and as three times as height as the image, with the image positioned into the upper left corner.
Code: Select all
<h:form id="fileupload">
<p:fileUpload id="fileUpload" width="61" height="22" image="../images/uploadbutton.jpg" customUI="true" fileUploadListener="#{fileUploadController.processFileUpload}"/>
</h:form>