Ticket #2505 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by bartvde

  • status changed from new to closed
  • state changed from Needs Discussion to Complete
  • resolution set to fixed

(In [10101]) Let position of loading panel be determined by css instead of by javascript code, p=fvanderbiest (closes #2505)

Changed 3 years ago by bartvde

  • milestone changed from 2.9 Release to Addins
Note: See TracTickets for help on using tickets.