Get Leaflet map size from QGIS canvas size

When you click the dialog's Get Layers button, it also pulls over the
QGIS map canvas dimensions. This could be implemented as an extra button
in the UI, but I could not get that to work.