Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Icon inside button
Hello, icon iside the button dosn't change its size.
My code is:
FileResource right = new FileResource(new File("right.png"));
Image upT = new Image();
upT.setIcon(right);
upT.setWidth("100%");
upT.setHeight("100%")
Button takes all possible place in layout, but icon is bigger than button size.
What should I do to make Icon resize, accordingly button size&
Last updated on
Have you tried to set the image size with CSS?
Kind regards,
Felype
Last updated on
You cannot reply to this thread.