Closed alexonozor closed 8 months ago
@alexonozor i cant reproduce your issue. The demo vue app works fine with aspectFill. Can you try a simpler example?
I had this bug in the past, unfortunately, it is not a NSImg
bug but a GridLayout
one.
@alexonozor Try with a StackLayout
with a background color instead of your NSImg
, you'll see it does not fill either.
@sebj54 can you share the simplest of examples ?
I won't have the time to test it this week but definitely try it as soon as I can. If I remember well the problem occurs when imbricating GridLayout
s with auto height.
@sebj54 @alexonozor i just pushed a new version which fixes auto measurement edge cases. Maybe it will fix it for you
I tried it out with the new version and still experienced the same issue on iOS I had a background colour and it fits in nicely. Meanwhile, I have been hacking it with iso:stretch="fit"
which doesn't look nice on ios because the image has to lose it aspect ratio on Android stretch="aspectFill"
<NSImg
placeholderImageUri='~/assets/ph.png' row="0" columns="0" height="100%" width="100%" fadeDuration="1000"
stretch="aspectFill" failureImageUri="~/assets/ph.png" [src]="store?.bannerImage">
</NSImg>
Note: It works well when I use the native image component
@alexonozor made a new version yesterday. Did you try latest ? I think i found the real issue.
Thanks but I am getting this error now
"@nativescript-community/ui-image": "^4.3.25",
CocoaPods could not find compatible versions for pod "SDWebImage":
In Podfile:
SDWebImage (>= 5.18.5.0)
None of your spec sources contain a spec satisfying the dependency: `SDWebImage (>= 5.18.5.0)
You should search on the web. You can do pod repo update
It works fine now, thank you for giving us a great plugin back-to-back!
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
All version in including
Is there any code involved?