rungwiroon / BlazorGoogleMaps

Blazor interop for GoogleMap library
MIT License
319 stars 102 forks source link

Screen size less than 600px (width) doesn't show the map. #278

Closed WebMat1 closed 11 months ago

WebMat1 commented 11 months ago

When the component is rendered in screen with less than 600px (width), the map is not shown.

valentasm1 commented 11 months ago

Have you tried modify Height prop?

https://github.com/rungwiroon/BlazorGoogleMaps/blob/master/GoogleMapsComponents/GoogleMap.razor#L41

WebMat1 commented 11 months ago

Yes, i have tried this. But it doesn't solve the problem.

my solution was change de cssclass tag to set "min-width:600px;"... and it works fine.

valentasm1 commented 11 months ago

Soo what you expect from me? I think it is html related issue or google map library.

WebMat1 commented 11 months ago

I think you can change de private string CssStyle to public and parameter.

valentasm1 commented 11 months ago

it is public and parameter. Which part are you talking about? https://github.com/rungwiroon/BlazorGoogleMaps/blob/master/GoogleMapsComponents/GoogleMap.razor#L32C24-L32C24

WebMat1 commented 11 months ago

StyleStr ?

valentasm1 commented 11 months ago

It is CssClass. Please open links and you will see https://github.com/rungwiroon/BlazorGoogleMaps/blob/master/GoogleMapsComponents/GoogleMap.razor#L32C24-L32C24