[OpenLayers-Trac] Re: [OpenLayers] #3180: treat UI and non-UI
controls differently
OpenLayers
trac-20090302 at openlayers.org
Sun Mar 20 06:57:45 EDT 2011
#3180: treat UI and non-UI controls differently
---------------------+------------------------------------------------------
Reporter: erilem | Owner: elemoine
Type: feature | Status: new
Priority: minor | Milestone: 2.12 Release
Component: Control | Version: 2.10
Keywords: | State:
---------------------+------------------------------------------------------
Comment(by jorix):
Great!
Since this topic touches I have a suggestion:
Using a pixel to position the controls is very poor. Could add to what
corner is concerned: "tl" (top left), "tr" (top right), "bl" (bottom
left), and "br" (bottom right) and as default set "tl"
Currently using the positioning controls is not useful if the CSS use a
corner control other than "tl". Since the control simultaneously resized
using "left" & "right" or "top" & "bottom" because their position is
absolute.
So by default:
{{{
div.style.left = position.x + "px";
div.style.top = position.y + "px";
div.style.bottom = "auto;
div.style.right = "auto;
}}}
----
Another suggestion is to rename getDiv by createDiv
--
Ticket URL: <http://trac.openlayers.org/ticket/3180#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list