iOs - button with ImageSource - defined heightRequest - ImageSource is not shown #28974
Replies: 1 comment
-
When I tested further I can see a small image inside the button. This small image inside the button appears when the HeightRequest="24" has equal or greater value of the picture (24 x 24). This resizing ends when the HeightRequest="43" - ImageSource=24 = 19 device units diference. P.S: CoPilot gave me great help with code examples to isolate this issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two buttons.
The first one have heightRequest defined.
The second button have no heightRequest defined.
The first button does not shown the icon.

Icon is larger then 15.
Result?

Notices:
When I re-asign the same icon imageSource on click handler, it works
... but only until the page is re-rendered. For example, when I click on the second button, the first button imageSource disappears.

Platform specific?
Android - it works.
iOs - it does not work if heightRequest is defined.
I tested with smaller images, so heightRequest is larger then image size, still does not work.


Beta Was this translation helpful? Give feedback.
All reactions