I have a open layers cluster map.I want to create customized popup as follows
The problem im facing is auto-pan doesnt work
var popup = new ol.Overlay(//** @type {olx.OverlayOptions} *//*({ element : container, autoPan : true, autoPanAnimation : { duration : 250 }}));i.e if i click on a cluster on the border of the visible view the screen doesnt adjust to fit the popup rather the popup gets cut.
second issue im facing is the popup width, i want to give the popup responsive width
i.e it should have a width in relation to its contentbut it gets scrunched up.Ive tried giving it in % but only hardcoded px width works.
I want to give it responsive width , with a min width beyond which it should not go
cluster map js file : http://pastebin.com/XamgaYHC
html file : http://pastebin.com/M0ncX3hV
css file : http://pastebin.com/QnjnUv1N
أكثر...

The problem im facing is auto-pan doesnt work
var popup = new ol.Overlay(//** @type {olx.OverlayOptions} *//*({ element : container, autoPan : true, autoPanAnimation : { duration : 250 }}));i.e if i click on a cluster on the border of the visible view the screen doesnt adjust to fit the popup rather the popup gets cut.

second issue im facing is the popup width, i want to give the popup responsive width
i.e it should have a width in relation to its contentbut it gets scrunched up.Ive tried giving it in % but only hardcoded px width works.
I want to give it responsive width , with a min width beyond which it should not go
cluster map js file : http://pastebin.com/XamgaYHC
html file : http://pastebin.com/M0ncX3hV
css file : http://pastebin.com/QnjnUv1N
أكثر...