Avoiding unnecessary repeated checks of navigator.userAgent. The constants added here should not be used outside the library. In the future, they should be removed from the library. r=ahocevar (closes #2911)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -337,7 +337,7 @@ OpenLayers.Popup = OpenLayers.Class({
|
||||
}
|
||||
|
||||
//listen to movestart, moveend to disable overflow (FF bug)
|
||||
if (!this.disableFirefoxOverflowHack && OpenLayers.Util.getBrowserName() == 'firefox') {
|
||||
if (!this.disableFirefoxOverflowHack && OpenLayers.BROWSER_NAME == 'firefox') {
|
||||
this.map.events.register("movestart", this, function() {
|
||||
var style = document.defaultView.getComputedStyle(
|
||||
this.contentDiv, null
|
||||
@@ -478,7 +478,7 @@ OpenLayers.Popup = OpenLayers.Class({
|
||||
//now if our browser is IE, we need to actually make the contents
|
||||
// div itself bigger to take its own padding into effect. this makes
|
||||
// me want to shoot someone, but so it goes.
|
||||
if (OpenLayers.Util.getBrowserName() == "msie") {
|
||||
if (OpenLayers.BROWSER_NAME == "msie") {
|
||||
this.contentSize.w +=
|
||||
contentDivPadding.left + contentDivPadding.right;
|
||||
this.contentSize.h +=
|
||||
|
||||
Reference in New Issue
Block a user