HelloWorld
HelloWorld

Reputation: 2355

MapContainer in InteractionDialog showing in simulator but not on Android

In my app I resort to MapContainer twice. The first time in a form and the second time in an InteractionDialog launched from another form.

In the simulator the map appears :

Map appearing in the simulator

but on a real device it doesn't :

Map not appearing on the device

Is it possible indeed to add a MapContainer in the centre of an InteractionDialog (in BorderLayout) ? If so how can I do that ?

Any help appreciated,

Upvotes: 0

Views: 32

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

The preferred size of a MapContainer might be 0 on the device and as a result you would see nothing. If you explicitly set the preferred size this might work. However, we haven't tested that use case.

Upvotes: 2

Related Questions