Ticket #2505 (closed bug: fixed)
OpenLayers.Control.LoadingPanel 's maximizeControl method does not let us style the control's div with CSS
| Reported by: | fvanderbiest | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | Addins |
| Component: | general | Version: | SVN |
| Keywords: | Cc: | ||
| State: | Complete |
Description
When I use the loadingPanel control Addin, I very often need to override the maximizeControl method, so that the control's div is not centered on the map (which I don't like)
Here's what I use:
var c = new OpenLayers.Control.LoadingPanel({
maximizeControl: function(evt) {
this.div.style.display = "block";
this.maximized = true;
if (evt != null) {
OpenLayers.Event.stop(evt);
}
}
});
This lets CSS handle the div's position with respect to the olControlLoadingPanel class.
Change History
Note: See
TracTickets for help on using
tickets.
